NAMEerror - Dealing with Errors
SYNOPSISCatchException( ExceptionInfo *exception ); void DestroyExceptionInfo( ExceptionInfo *exception ); GetExceptionInfo( ExceptionInfo *exception ); const char * GetLocaleExceptionMessage( const ExceptionType severity, const char *tag ); InheritException( ExceptionInfo *exception, const ExceptionInfo *relative ); 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 ); MagickBooleanType SetExceptionInfo( ExceptionInfo *exception, ExceptionType severity ); ErrorHandler SetWarningHandler( ErrorHandler handler ); MagickBooleanType ThrowException( ExceptionInfo *exception_info, const ExceptionType severity, const char *reason, const char *description );
FUNCTION DESCRIPTIONS
CatchExceptionCatchException() returns if no exceptions is found otherwise it reports the exception as a warning, error, or fatal depending on the severity. The format of the CatchException method is: CatchException ( ExceptionInfo *exception ); A description of each parameter follows:
DestroyExceptionInfoDestroyExceptionInfo() deallocates memory associated with exception. The format of the DestroyExceptionInfo method is: void DestroyExceptionInfo ( ExceptionInfo *exception ); A description of each parameter follows:
GetExceptionInfoGetExceptionInfo() initializes an exception to default values. The format of the GetExceptionInfo method is: GetExceptionInfo ( ExceptionInfo *exception ); A description of each parameter follows:
GetLocaleExceptionMessageGetLocaleExceptionMessage() converts a enumerated exception severity and tag to a message in the current locale. The format of the GetLocaleExceptionMessage method is: const char *GetLocaleExceptionMessage ( const ExceptionType severity, const char *tag ); A description of each parameter follows:
InheritExceptionInheritException() inherits an exception from a related exception. The format of the InheritException method is: InheritException ( ExceptionInfo *exception, const ExceptionInfo *relative ); A description of each parameter follows:
MagickErrorMagickError() 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:
The format of the MagickError method is: void MagickFatalError(const ExceptionType error,const char *reason, const char *description) A description of each parameter follows:
MagickWarningMagickWarning() 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:
SetErrorHandlerSetErrorHandler() 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:
SetExceptionInfoSetExceptionInfo() set the exception severity. The format of the SetExceptionInfo method is: MagickBooleanType SetExceptionInfo ( ExceptionInfo *exception, ExceptionType severity ); A description of each parameter follows:
SetFatalErrorHandlerSetFatalErrorHandler() 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:
SetWarningHandlerSetWarningHandler() 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:
ThrowExceptionThrowException() throws an exception with the specified severity code, reason, and optional description. The format of the ThrowException method is: MagickBooleanType ThrowException ( ExceptionInfo *exception_info, const ExceptionType severity, const char *reason, const char *description ); A description of each parameter follows:
ThrowMagickExceptionThrowMagickException logs an exception as determined by the log configuration file. If an error occurs, MagickFalse is returned otherwise MagickTrue. The format of the ThrowMagickException method is: MagickBooleanType ThrowFileException(ExceptionInfo *exception, const char *module,const char *function,const unsigned long line, const ExceptionType severity,const char *tag,...) A description of each parameter follows:
|