0error - ImageMagick Error Methods>/


NAME



!error - ImageMagick Error Methods






(

SYNOPSIS



Zvoid MagickError( const ErrorType error, const char *message, const char*qualifier );



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



GErrorHandler SetErrorHandler( ErrorHandler handler );



IErrorHandler SetWarningHandler( ErrorHandler handler );






B

FUNCTION DESCRIPTIONS






.

MagickError



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



(The format of the MagickError method is:

q
void MagickError ( const ErrorType error, const char *message, const char *qualifier );


=A description of each parameter follows:


7

error:


%Specifies the numeric error category.

$

message:


@Specifies the message to display before terminating the program.

&

qualifier:


'Specifies any qualifier to the message.






2

MagickWarning



EMethod MagickWarning calls the warning handler methods with a warningmessage.



*The format of the MagickWarning method is:

w
void MagickWarning ( const WarningType 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.






6

SetErrorHandler



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



,The format of the SetErrorHandler method is:

P
ErrorHandler SetErrorHandler ( ErrorHandler handler );


=A description of each parameter follows:


$

handler:


1Specifies a pointer to a method to handle errors.






:

SetWarningHandler



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



.The format of the SetWarningHandler method is:

R
ErrorHandler SetWarningHandler ( ErrorHandler handler );


=A description of each parameter follows:


$

handler:


3Specifies a pointer to a method to handle warnings.