ErrorEvent

Causes a user-defined error.

Syntax:

ErrorEvent( severity, error-code, error-message)

Parameters:

(i) severity severity, which can be one of the following: -1 minor error -2 moderate error
-3 severe error

(i) error-code error code, which must be a number between 7000 and 7999.

(s) error-message error message, which is a string describing the error

Returns:

(i) always 1.

 

Example:


ErrorEvent ( -1, 7001, "Testing User Defined Error");minor error
ErrorEvent ( -2, 7002, "Testing User Defined Error");moderate error
ErrorEvent ( -3, 7003, "Testing User Defined Error");fatal error
See Also:

ErrorMode, User Defined Functions