MagickCore  6.7.5
exception.c File Reference
Include dependency graph for exception.c:

Go to the source code of this file.

Functions

static void DefaultErrorHandler (const ExceptionType, const char *, const char *)
static void DefaultFatalErrorHandler (const ExceptionType, const char *, const char *)
static void DefaultWarningHandler (const ExceptionType, const char *, const char *)
MagickExport ExceptionInfoAcquireExceptionInfo (void)
static void * DestroyExceptionElement (void *exception)
MagickExport void ClearMagickException (ExceptionInfo *exception)
MagickExport void CatchException (ExceptionInfo *exception)
MagickExport ExceptionInfoCloneExceptionInfo (ExceptionInfo *exception)
static void DefaultErrorHandler (const ExceptionType magick_unused(severity), const char *reason, const char *description)
static void DefaultFatalErrorHandler (const ExceptionType magick_unused(severity), const char *reason, const char *description)
static void DefaultWarningHandler (const ExceptionType magick_unused(severity), const char *reason, const char *description)
MagickExport ExceptionInfoDestroyExceptionInfo (ExceptionInfo *exception)
MagickExport void GetExceptionInfo (ExceptionInfo *exception)
MagickExport char * GetExceptionMessage (const int error)
static const char * ExceptionSeverityToTag (const ExceptionType severity)
MagickExport const char * GetLocaleExceptionMessage (const ExceptionType severity, const char *tag)
MagickExport void InheritException (ExceptionInfo *exception, const ExceptionInfo *relative)
MagickExport void MagickError (const ExceptionType error, const char *reason, const char *description)
MagickExport void MagickFatalError (const ExceptionType error, const char *reason, const char *description)
MagickExport void MagickWarning (const ExceptionType warning, const char *reason, const char *description)
MagickExport ErrorHandler SetErrorHandler (ErrorHandler handler)
MagickExport FatalErrorHandler SetFatalErrorHandler (FatalErrorHandler handler)
MagickExport WarningHandler SetWarningHandler (WarningHandler handler)
MagickExport MagickBooleanType ThrowException (ExceptionInfo *exception, const ExceptionType severity, const char *reason, const char *description)
static MagickBooleanType ThrowMagickExceptionList (ExceptionInfo *exception, const char *module, const char *function, const size_t line, const ExceptionType severity, const char *tag, const char *format, va_list operands)
MagickExport MagickBooleanType ThrowMagickException (ExceptionInfo *exception, const char *module, const char *function, const size_t line, const ExceptionType severity, const char *tag, const char *format,...)

Variables

static ErrorHandler error_handler = DefaultErrorHandler
static FatalErrorHandler fatal_error_handler = DefaultFatalErrorHandler
static WarningHandler warning_handler = DefaultWarningHandler

Function Documentation

static void DefaultErrorHandler ( const ExceptionType  ,
const char *  ,
const char *   
) [static]
static void DefaultErrorHandler ( const ExceptionType   magick_unusedseverity,
const char *  reason,
const char *  description 
) [static]

Definition at line 293 of file exception.c.

References FormatLocaleFile(), and GetClientName().

static void DefaultFatalErrorHandler ( const ExceptionType  ,
const char *  ,
const char *   
)
static void DefaultFatalErrorHandler ( const ExceptionType   magick_unusedseverity,
const char *  reason,
const char *  description 
) [static]

Definition at line 334 of file exception.c.

References FormatLocaleFile(), GetClientName(), and MagickCoreTerminus().

static void DefaultWarningHandler ( const ExceptionType  ,
const char *  ,
const char *   
)
static void DefaultWarningHandler ( const ExceptionType   magick_unusedseverity,
const char *  reason,
const char *  description 
) [static]

Definition at line 377 of file exception.c.

References FormatLocaleFile(), and GetClientName().

static void* DestroyExceptionElement ( void *  exception) [static]
MagickExport char* GetExceptionMessage ( const int  error)

Definition at line 490 of file exception.c.

References MaxTextExtent, CopyMagickString(), and ConstantString().

Referenced by InitializeMagickList().

MagickExport const char* GetLocaleExceptionMessage ( const ExceptionType  severity,
const char *  tag 
)
MagickExport void MagickError ( const ExceptionType  error,
const char *  reason,
const char *  description 
)

Definition at line 705 of file exception.c.

References error_handler.

Referenced by CatchException().

MagickExport void MagickFatalError ( const ExceptionType  error,
const char *  reason,
const char *  description 
)

Definition at line 741 of file exception.c.

References fatal_error_handler.

Referenced by CatchException().

MagickExport void MagickWarning ( const ExceptionType  warning,
const char *  reason,
const char *  description 
)

Definition at line 775 of file exception.c.

References warning_handler.

Referenced by CatchException().

MagickExport ErrorHandler SetErrorHandler ( ErrorHandler  handler)

Definition at line 805 of file exception.c.

References error_handler.

MagickExport FatalErrorHandler SetFatalErrorHandler ( FatalErrorHandler  handler)

Definition at line 838 of file exception.c.

References fatal_error_handler.

Referenced by LoadLocaleList().

MagickExport WarningHandler SetWarningHandler ( WarningHandler  handler)

Definition at line 871 of file exception.c.

References warning_handler.

Referenced by IdentifyImage().

MagickExport MagickBooleanType ThrowMagickException ( ExceptionInfo exception,
const char *  module,
const char *  function,
const size_t  line,
const ExceptionType  severity,
const char *  tag,
const char *  format,
  ... 
)

Definition at line 1032 of file exception.c.

References ThrowMagickExceptionList().

Referenced by AccelerateConvolveImage(), AnimateImages(), RenderType(), RenderFreetype(), RenderX11(), GetImageBoundingBox(), BlobToImage(), FileToBlob(), ImageToBlob(), ImageToFile(), ImagesToBlob(), OpenBlob(), PingBlob(), DiskToDiskPixelCacheClone(), PixelCacheCloneUnoptimized(), GetVirtualPixelsFromNexus(), OpenPixelCache(), QueueAuthenticPixelCacheNexus(), AcquireCacheNexusPixels(), LoadCoderList(), LoadCoderLists(), GetColorCompliance(), LoadColorList(), LoadColorLists(), QueryColorCompliance(), ConstrainColormapIndex(), GetImageDistortions(), ZLIBEncodeImage(), GetConfigureOptions(), LoadConfigureList(), LoadConfigureLists(), ReadImage(), WriteImage(), GetDelegateCommand(), InvokeDelegate(), LoadDelegateList(), DisplayImages(), RemoteDisplayCommand(), GenerateCoefficients(), DistortImage(), DrawImage(), GetImageFeatures(), ForwardFourierTransformImage(), InverseFourierTransformImage(), FxSubexpression(), FxGetSymbol(), FxEvaluateSubexpression(), ParseAffineGeometry(), ParseGravityGeometry(), ParsePageGeometry(), ParseRegionGeometry(), ClassifyImageColors(), GetImageHistogram(), IsHistogramImage(), IsPaletteImage(), SyncImage(), RemoveZeroDelayLayers(), DeleteImages(), ImageListToArray(), LoadLocaleList(), LoadLogList(), LoadLogLists(), LoadMagicList(), LoadMagicLists(), LoadMimeList(), InvokeDynamicImageFilter(), ExportImagePixels(), ImportImagePixels(), LoadPolicyList(), LoadPolicyLists(), GetImageTotalInkDensity(), ProfileImage(), QuantizeImages(), ExportBlackQuantum(), ExportCMYKQuantum(), ExportCMYKAQuantum(), ExportIndexQuantum(), ExportIndexAlphaQuantum(), ImportBlackQuantum(), ImportCMYKQuantum(), ImportCMYKAQuantum(), ImportIndexQuantum(), ImportIndexAlphaQuantum(), GetImageRegistry(), SetImageRegistry(), SetResampleFilter(), LiquidRescaleImage(), HorizontalFilter(), VerticalFilter(), GetImageDynamicThreshold(), AcquireRadonInfo(), EvaluateImages(), AcquireStreamPixels(), GetVirtualPixelStream(), QueueAuthenticPixelsStream(), StreamImagePixels(), SyncAuthenticPixelsStream(), GetThresholdMapFile(), ListThresholdMapFile(), OrderedPosterizeImage(), CropImage(), GetTypeInfoByFamily(), LoadTypeList(), SystemCommand(), ParseCloseTag(), ParseInternalDoctype(), and NewXMLTree().

static MagickBooleanType ThrowMagickExceptionList ( ExceptionInfo exception,
const char *  module,
const char *  function,
const size_t  line,
const ExceptionType  severity,
const char *  tag,
const char *  format,
va_list  operands 
) [static]

Variable Documentation

ErrorHandler error_handler = DefaultErrorHandler [static]

Definition at line 76 of file exception.c.

Referenced by MagickError(), and SetErrorHandler().

FatalErrorHandler fatal_error_handler = DefaultFatalErrorHandler [static]

Definition at line 79 of file exception.c.

Referenced by MagickFatalError(), and SetFatalErrorHandler().

WarningHandler warning_handler = DefaultWarningHandler [static]

Definition at line 82 of file exception.c.

Referenced by MagickWarning(), and SetWarningHandler().