Pushes an error to the stack .
int
ade_errpush(
int err_code,
char* level,
char* message);
Returns RTNORM or an error code.
err_code | Error code (details below). |
level | Error level. Values can be: "warning", "error" (default), or the empty string. If the empty string, the error level is "error". |
message | Error message. |
If your application will use custom error codes, define a range for them that does not conflict with any range used for AutoCAD Map error codes. To specify a general error, let the err_code argument be 1 (kAdeErr).
The valid level values, "warning", and "error", correspond respectively to the following error types:
1 | kAdeWarning |
2 | kAdeError |
For a list of all error types, including the two that are valid level values, see Error Types.
The following example pushes an error to the stack.
ade_errpush( 1, "error", "message text" );