Class: cBaseErrorHandler¶
Include: Use System\ErrorSystem.pkg
Hierarchy: cObject -> cBaseErrorHandler
Package: System\ErrorSystem.pkg
cBaseErrorHandler receives runtime error reports, classifies user-facing errors, and controls which error numbers are trapped or ignored.
Properties¶
See Properties.
| Name | Purpose |
|---|---|
| psUnhandledErrorCaption | Caption used for unhandled program errors. |
| psUserErrorCaption | Caption used for user-facing errors. |
| pbUnhandledErrorSupport | Controls unhandled error support. |
Methods¶
See Methods.
| Name | Purpose |
|---|---|
| DefineStandardUserErrors | Resets the standard set of user-facing error numbers. |
| DisplayUserError | Displays a user-facing error. |
| DisplayUnhandledError | Displays an unhandled program error. |
| IsUserError | Returns true when an error is classified as user-facing. |
| IsUnhandledError | Returns true when an error is treated as unhandled. |
| AddUserError | Adds an error number to the user-facing set. |
| RemoveUserError | Removes an error number from the user-facing set. |
| RemoveAllUserErrors | Clears the user-facing error number set. |
| IsCritical | Checks whether an error is critical. |
| TrapError | Enables processing for one error number. |
| IgnoreError | Disables processing for one error number. |
| IgnoreAllErrors | Disables processing for all error numbers. |
| TrapAllErrors | Enables processing for all error numbers. |
| IsTrapped | Returns true when an error number is enabled for processing. |
Events¶
See Events.
| Name | Purpose |
|---|---|
| HandleError | Handles an error reported to the handler. |
| Error_Report | Receives runtime error reports. |
Example¶
Handle hoError
Get Error_Object_Id to hoError
Send AddUserError of hoError DFERR_OPERATOR
If (IsUserError(hoError, DFERR_OPERATOR)) Begin
Send TrapError of hoError DFERR_OPERATOR
End