Error handling

forum.centura.web.developer (1998-2005) & forum.td.web (2005-2010)
Mirko
Italy
Posts: 1298
Joined: 04 Apr 2017, 08:56
Location: Geneva

Error handling

Post by Mirko » 28 Feb 2008, 12:01

 Posted by:  Mirko BONANNO 

Hi all,

in my web application when I get a SqlError sometimes I get the blanck page
"Application Error" and there is no way to handle this (I can see the
offending SqlStatement in the logs) whatever I return from On SqlError !

Why ?

Mirko

czavala
Honduras
Posts: 197
Joined: 02 Oct 2018, 17:35
Location: San Pedro Sula, Honduras

Re: Error handling

Post by czavala » 29 Apr 2008, 19:02

 Posted by:  Conrado ZAVALA 

Hello Mirko,

I'm not sure if you already tried this but what I have done is something
like this:

On SAM_Click
! CAPTURE SQL ERROR:
When SqlError
Call SqlExtract( ... )
...
Call WebMessageBox( ... )
Return FALSE

! PREPARE and execute SQL Statement:
If SqlPrepareAndExecute( hSql, "SELECT NAME INTO :sName FROM..." )
Call SqlFetchNext( hSql, nSqlFetch )
! RELEASE connection:
Call SqlCommit( hSql )
VALIDATE nSqlFetch:
If nSqlFetch = FETCH_Ok
Return TRUE
Return FALSE

Conrado

Mirko
Italy
Posts: 1298
Joined: 04 Apr 2017, 08:56
Location: Geneva

Re: Error handling

Post by Mirko » 16 Dec 2008, 17:47

 Posted by:  Mirko BONANNO 

I'd like to get rid of this message at the client side:

Application Error

in a white page

TIA
Mirko

You do not have the required permissions to view the files attached to this post.

Return to “td.web”

Who is online

Users browsing this forum: [Ccbot] and 1 guest