- NAME
- SYNOPSIS
- FUNCTION DESCRIPTIONS
  - MagickError
  - MagickWarning
  - SetErrorHandler
  - SetWarningHandler

# NAME

error - ImageMagick Error Methods

# SYNOPSIS

MagickError( error, message, qualifier );

void MagickWarning( const unsigned int warning, const char *message, const char `*qualifier` );

ErrorHandler SetErrorHandler( ErrorHandler handler );

ErrorHandler SetWarningHandler( ErrorHandler handler );

# FUNCTION DESCRIPTIONS

A description of each parameter follows:

warning:

  Specifies the numeric warning category.

message:

  Specifies the message to display before terminating the program.

qualifier:

  Specifies any qualifier to the message.

## MagickError

Method MagickError calls the error handler methods with an error message.

The format of the MagickError method is:

> MagickError ( error, message, qualifier );

A description of each parameter follows:

error:

  Specifies the numeric error category.

message:

  Specifies the message to display before terminating the program.

qualifier:

  Specifies any qualifier to the message.

## MagickWarning

Method MagickWarning calls the warning handler methods with a warning message.

The format of the MagickWarning method is:

> void MagickWarning ( const unsigned int warning, const char *message, const char *qualifier );

A description of each parameter follows:

warning:

  Specifies the numeric warning category.

message:

  Specifies the message to display before terminating the program.

qualifier:

  Specifies any qualifier to the message.

## SetErrorHandler

Method SetErrorHandler sets the error handler to the specified method and returns the previous error handler.

The format of the SetErrorHandler method is:

> ErrorHandler SetErrorHandler ( ErrorHandler handler );

A description of each parameter follows:

handler:

  Specifies a pointer to a method to handle errors.

## SetWarningHandler

Method SetWarningHandler sets the warning handler to the specified method and returns the previous warning handler.

The format of the SetWarningHandler method is:

> ErrorHandler SetWarningHandler ( ErrorHandler handler );

A description of each parameter follows:

handler:

  Specifies a pointer to a method to handle warnings.