error - ImageMagick Error Methods
void DestroyExceptionInfo( ExceptionInfo *exception );
GetExceptionInfo( ExceptionInfo *exception );
void MagickError( const ExceptionType error, const char *reason, const char *description );
void MagickWarning( const ExceptionType warning, const char *reason, const char *description );
ErrorHandler SetErrorHandler( ErrorHandler handler );
SetExceptionInfo( ExceptionInfo *exception, ExceptionType severity );
ErrorHandler SetWarningHandler( ErrorHandler handler );
void ThrowException( ExceptionInfo *exception, const ExceptionType severity, const char *reason, const char *description );
DestroyExceptionInfo() deallocates memory associated with exception.
The format of the DestroyExceptionInfo method is:
void DestroyExceptionInfo ( ExceptionInfo *exception );
A description of each parameter follows:
GetExceptionInfo() initializes exception to default values.
The format of the GetExceptionInfo method is:
GetExceptionInfo ( ExceptionInfo *exception );
A description of each parameter follows:
Method MagickError calls the error handler methods with an error reason.
The format of the MagickError method is:
void MagickError ( const ExceptionType error, const char *reason, const char *description );
A description of each parameter follows:
MagickFatalError()
calls the fatal error handler methods with an error reason.
The format of the MagickError method is:
void MagickFatalError(const ExceptionType error,const char *reason, const char *description)
A description of each parameter follows:
Method MagickWarning calls the warning handler methods with a warning reason.
The format of the MagickWarning method is:
void MagickWarning ( const ExceptionType warning, const char *reason, const char *description );
A description of each parameter follows:
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:
SetExceptionInfo() set the exception severity.
The format of the SetExceptionInfo method is:
SetExceptionInfo ( ExceptionInfo *exception, ExceptionType severity );
A description of each parameter follows:
SetFatalErrorHandler() sets the fatal error handler to the specified method and returns the previous fatal error handler.
The format of the SetErrorHandler method is:
ErrorHandler SetErrorHandler(ErrorHandler handler)
A description of each parameter follows:
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:
ThrowException() throws an exception with the specified severity code, reason, and optional description.
The format of the ThrowException method is:
void ThrowException ( ExceptionInfo *exception, const ExceptionType severity, const char *reason, const char *description );
A description of each parameter follows: