Error handling

forum.centura.web.developer (2000-2005) & forum.td.web (2005-2010)
NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Error handling

Post by NewsgroupServer » 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

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Error handling

Post by NewsgroupServer » 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

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

Error handling

Post by NewsgroupServer » 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

Attachment: ~MyBitmap.TIF

Return to “td.web”

Who is online

Users browsing this forum: No registered users and 0 guests