. error - ImageMagick Error Routines�� �  0 




NAME

"error - ImageMagick Error Routines








SYNOPSIS

5MagickError(error,message,qualifier)

9MagickWarning(warning,message,qualifier)

:previous_handler=SetErrorHandler(handler)

7previous_status=SetErrorStatus(status)

<previous_handler=SetWarningHandler(handler)






9

FUNCTION DESCRIPTIONS






9

DefaultWarningHandler

:Function DefaultWarningHandler displays a warning message.

3The format of the DefaultWarningHandler routine is:






%

MagickError

CFunction MagickError calls the error handler routines with an errormessage.

)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.






)

MagickWarning

IFunction MagickWarning calls the warning handler routines with an 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.






-

SetErrorHandler

HFunction 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.






+

SetErrorStatus

EFunction SetErrorStatus sets the error handler status and returns theprevious status.

,The format of the SetErrorStatus routine is:

3

        previous_status=SetErrorStatus(status)


(A description of each parameter follows:




previous_status:
9Function SetErrorStatus returns the current error status.



status:
Specifies the new status value.






1

SetWarningHandler

DFunction SetWarningHandler sets the warning handler to the specified1routine 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.