PreviousNext

Declaring and Initializing an Exception Object

Declaring and initializing an exception object documents that a program reports or handles a particular error. Having the error expressed as an exception object provides future extensibility as well as portability. Following is an example of declaring and initializing an exception object:

EXCEPTION parity_error; /* Declare it */
EXCEPTION_INIT (parity_error); /* Initialize it */