Class: ErrorSystem
Class Hierarchy:
cObject

ErrorSystemClass Definition
Properties
Integer
Bell_on_Find_Error_State
This allows us to skip find errors (GT & LT) and to only
ring a bell when these occur.
Integer
Current_Error_Number
Integer
Error_Line_Number
Integer
Error_Processing_State
Flag which is sent when error is being processed. This
stops error recursion.
Boolean
pbShowErrorNumber
shows error numbers with user errors. Only set this true if your
application has meaningful numbers that helps the end user. Note that
unhandled errors always show numbers.
this is ignored if pbUnhandledErrorSupport is false
Boolean
pbUnhandledErrorSupport
If set false, this makes the error handler work the old way which
does not use the new unhandled dialog. Only exists for compatibility reasons
String
psUnhandledErrorCaption
This is the caption that appears for unhandled errors dialog box
String
psUserErrorCaption
This is the caption that appears for standard user errors
Integer[]
pUserErrorsArray
array of errors that we consider User Errors
Integer
Verbose_State
Functions and Procedures

AddUserError(Integer iError)
adds a user error to the array
String
Application_Name()

construct_object()
String
Error_Description(Integer Error# String ErrMsg)
*** Build complete error description from Flexerrs and user error message.

Error_Report(Integer ErrNum Integer Err_Line String ErrMsg)
*** Handle error event, displaying error info to user.
String
Help_Context(Integer Context_Type)
String
Help_Name()
JJT- Note if you are using the WINDAF windows help system
the following functions are not used.
The functions below are used to construct a general help
name for errors that are generated by the system. If processing
comes here, then there was no module specific help found. These
functions will provide a more general help name that appears in
the form of SYSTEM..ERROR:#. All global errors should be
places in the help file under this application and module name.
*** Returns "ERROR:errornum" to supply error help.

Ignore_All()
*** Forward all error to regular DataFlex error handler.

Ignore_Error(Integer Error#)
*** Pass error Error# on to the regular DataFlex error handler.
Integer
Is_Critical(Integer Error#)
** return true if an error number is critical
Boolean
IsUnhandledError(Integer iError)
returns true if this is an unhandled error (i.e., not a user error
String
Module_Name()

RemoveAllUserErrors()
removes all user errors

RemoveUserError(Integer iError)
removes an error from the user array

Trap_All()
*** Catch and display all errors.

Trap_Error(Integer Error#)
*** Catch and display error Error#.

UnhandledErrorDisplay(Integer iErrorLine String sMessage)
Instances
oEvalObj | cInternetSessionBusinessProcess.pkg | 88 |
References (1):