NAME

error - ImageMagick Error Routines


SYNOPSIS

DefaultErrorHandler(message,qualifier)

DefaultWarningHandler(message,qualifier)

Error(message,qualifier)

previous_handler=SetErrorHandler(handler)

previous_handler=SetWarningHandler(handler)

Warning(message,qualifier)


FUNCTION DESCRIPTIONS


DefaultErrorHandler

Function DefaultErrorHandler displays an error message and then terminates the program.

The format of the DefaultErrorHandler routine is:

        DefaultErrorHandler(message,qualifier)

A description of each parameter follows:

o message:
Specifies the message to display before terminating the program.

o qualifier:
Specifies any qualifier to the message.


DefaultWarningHandler

Function DefaultWarningHandler displays a warning message.

The format of the DefaultWarningHandler routine is:

        DefaultWarningHandler(message,qualifier)

A description of each parameter follows:

o message:
Specifies the message to display before terminating the program.

o qualifier:
Specifies any qualifier to the message.


Error

Function Error calls the error handler routines with an error message.

The format of the Error routine is:

        Error(message,qualifier)

A description of each parameter follows:

o message:
Specifies the message to display before terminating the program.

o qualifier:
Specifies any qualifier to the message.


SetErrorHandler

Function SetErrorHandler sets the error handler to the specified routine and returns the previous error handler.

The format of the SetErrorHandler routine is:

        previous_handler=SetErrorHandler(handler)

A description of each parameter follows:

o handler:
Specifies a pointer to a routine to handle errors.


SetWarningHandler

Function SetWarningHandler sets the warning handler to the specified routine and returns the previous warning handler.

The format of the SetWarningHandler routine is:

        previous_handler=SetWarningHandler(handler)

A description of each parameter follows:

o handler:
Specifies a pointer to a routine to handle warnings.


Warning

Function Warning calls the warning handler routines with an warning message.

The format of the Warning routine is:

        Warning(message,qualifier)

A description of each parameter follows:

o message:
Specifies the message to display before terminating the program.

o qualifier:
Specifies any qualifier to the message.