[
About ImageMagick
Command-line Tools
Program Interfaces
] [ Install from Source Binary Releases Resources ] [ Download ] [ Links ] [ Sponsors IT and Programming Resources ] |
CatchException() 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: exceptionThe exception info. DestroyExceptionInfo() deallocates memory associated with an exception. The format of the DestroyExceptionInfo method is: void DestroyExceptionInfo(ExceptionInfo *exception) A description of each parameter follows: exceptionThe exception info. GetExceptionInfo() initializes an exception to default values. The format of the GetExceptionInfo method is: GetExceptionInfo(ExceptionInfo *exception) A description of each parameter follows: exceptionThe exception info. GetLocaleExceptionMessage() 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: severitythe severity of the exception. tagthe message tag. InheritException() 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: exceptionThe exception info. relativeThe related exception info. MagickError() calls the exception 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: exceptionSpecifies the numeric error category. reasonSpecifies the reason to display before terminating the program. descriptionSpecifies any description to the reason. MagickFatalError() calls the fatal exception 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: exceptionSpecifies the numeric error category. reasonSpecifies the reason to display before terminating the program. descriptionSpecifies any description to the reason. 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: warningThe warning severity. reasonDefine the reason for the warning. descriptionDescribe the warning. SetErrorHandler() sets the exception handler to the specified method and returns the previous exception handler. The format of the SetErrorHandler method is: ErrorHandler SetErrorHandler(ErrorHandler handler) A description of each parameter follows: handlerThe method to handle errors. SetExceptionInfo() set the exception severity. The format of the SetExceptionInfo method is: MagickBooleanType SetExceptionInfo(ExceptionInfo *exception, ExceptionType severity) A description of each parameter follows: exceptionThe exception info. severityThe exception severity. SetFatalErrorHandler() sets the fatal exception handler to the specified method and returns the previous fatal exception handler. The format of the SetErrorHandler method is: ErrorHandler SetErrorHandler(ErrorHandler handler) A description of each parameter follows: handlerThe method to handle errors. 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: handlerThe method to handle warnings. ThrowException() 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: exception_infoThe exception info. severityThe severity of the exception. tagThe message tag. descriptionThe exception description. |