0error - ImageMagick Error Methods;/


NAME



!error - ImageMagick Error Methods




(

SYNOPSIS



5MagickError(error,message,qualifier)

9MagickWarning(warning,message,qualifier)

:previous_handler=SetErrorHandler(handler)

<previous_handler=SetWarningHandler(handler)




B

FUNCTION DESCRIPTIONS



(A description of each parameter follows:

6
warning:


'Specifies the numeric warning category.!

message:


@Specifies the message to display before terminating the program.#

qualifier:


'Specifies any qualifier to the message.






.

MagickError



JMethod MagickError calls the error handler routines with an error message.

)The format of the MagickError routine is:

1

        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.






2

MagickWarning



FMethod MagickWarning calls the warning handler routines with a warningmessage.

+The format of the MagickWarning routine is:

5

        MagickWarning(warning,message,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



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

-The format of the SetErrorHandler routine is:

6

        previous_handler=SetErrorHandler(handler)


(A description of each parameter follows:

!
handler:


2Specifies a pointer to a routine to handle errors.






:

SetWarningHandler



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

/The format of the SetWarningHandler routine is:

8

        previous_handler=SetWarningHandler(handler)


(A description of each parameter follows:

!
handler:


4Specifies a pointer to a routine to handle warnings.