ErrorMgr.h
and ErrorBase.h
. This chapter covers:
ERROR_CHECK_LEVEL
to control the level of error messages displayed. You can set the value of the compiler define to control which level of error checking and display is compiled into the application. Three levels of error checking are supported: none, partial, and full.
ErrAlert (err)
err
parameter is used as the index into this list.
ErrAlert
, make sure that all of your error codes are greater than or equal to appErrorClass
. This way, the error manager looks up the code in the application's 'tSTL' resource number 0. All other error codes are taken from 'tSTL' resource stored in the system.
ErrDisplay (msg)
ERROR_CHECK_LEVEL
is set to 1 or 2 (ERROR_CHECK_PARTIAL
or ERROR_CHECK_FULL
).
ErrFatalDisplayIf
,
ErrNonFatalDisplayIf
void ErrDisplayFileLineMsg (const Char * const filename, UInt16 lineno, const Char * const msg)
  |
-> |
Source code filename. |
  |
-> |
Line number in the source code file. |
  |
-> |
Message to display. |
ErrFatalDisplayIf
and
ErrNonFatalDisplayIf
. This function is useful when the application is already on the device and being tested by users.
condition
is true
and error checking is set to partial or full.
ErrFatalDisplayIf (condition, msg)
  |
-> |
A boolean value. If true , display the error. |
  |
-> |
Error message text as a string. |
condition
is true
. The dialog is cleared only when the user resets the system by responding to the dialog.
ERROR_CHECK_LEVEL
is set to 1 or 2 (ERROR_CHECK_PARTIAL
or ERROR_CHECK_FULL
).
ErrNonFatalDisplayIf
,
ErrDisplay
,
true
and error checking is set to full.
ErrNonFatalDisplayIf (condition, msg)
  |
-> |
A boolean value. If true , display the error. |
  |
-> |
Error message text as a string. |
condition
is true
. The alert dialog is cleared when the user selects to continue (or resets the system).
ERROR_CHECK_LEVEL
is set to 2 (ERROR_CHECK_FULL
).
ErrFatalDisplayIf
,
ErrDisplay
,
void ErrThrow (Int32 err)
ErrFatalDisplayIf
,
ErrNonFatalDisplayIf
,
ErrDisplay
  |   |