Error Handling

Subhransu

Member
Hi All,
I would like to know if there is a way to capture the error message without using NO-ERROR and ERROR-STATUS:GET-MESSAGE(n)?

Thanks.
Subhransu
 

rzr

Member
from the documentation:


Code:
[FONT=courier new]DEFINE VARIABLE iCust AS INTEGER.

ASSIGN iCust = 5000.

FIND Customer WHERE CustNum = iCust. /* Will fail */

/* The associated block for this CATCH block is the main block of the .p */
CATCH eSysError AS Progress.Lang.SysError:
    MESSAGE eSysError:GetMessage(1) VIEW-AS ALERT-BOX BUTTONS OK.
    DELETE OBJECT eSysError.
END CATCH.[/FONT]
 

TomBascom

Curmudgeon
No.

9.1E is ancient and obsolete. Version 11 is the current release. You should upgrade. Especially if you need features that are simply not available in older releases.
 

Cringer

ProgressTalk.com Moderator
Staff member
Please use valid Progress syntax...

TomBascomOpinion = TomBascomOpinion + 1.

;)
 

Cringer

ProgressTalk.com Moderator
Staff member
Knowing Progress it'll end up being something unwieldy like NOW-LET-US-INCREMENT-SOME-VARIABLE-SOMEWHERE(TomBascomOpinion). ;)
 
Top