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

Go to the source code of this file.

Macros

#define MaxExceptionList   64
 

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 DefaultWarningHandler (const ExceptionType magick_unused(severity), const char *reason, const char *description)
 
MagickExport ExceptionInfoDestroyExceptionInfo (ExceptionInfo *exception)
 
MagickPrivate MagickBooleanType ExceptionComponentGenesis (void)
 
MagickPrivate void ExceptionComponentTerminus (void)
 
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)
 
MagickPrivate void InitializeExceptionInfo (ExceptionInfo *exception)
 
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)
 
MagickExport 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
 
static SemaphoreInfoexception_semaphore = (SemaphoreInfo *) NULL
 

Macro Definition Documentation

#define MaxExceptionList   64

Definition at line 61 of file exception.c.

Referenced by ThrowException().

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 298 of file exception.c.

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

static void DefaultFatalErrorHandler ( const ExceptionType  severity,
const char *  reason,
const char *  description 
)
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 382 of file exception.c.

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

static void* DestroyExceptionElement ( void *  exception)
static
MagickPrivate MagickBooleanType ExceptionComponentGenesis ( void  )

Definition at line 468 of file exception.c.

References AcquireSemaphoreInfo(), exception_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

MagickPrivate void ExceptionComponentTerminus ( void  )
MagickExport char* GetExceptionMessage ( const int  error)

Definition at line 525 of file exception.c.

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

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 773 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 809 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 843 of file exception.c.

References warning_handler.

Referenced by CatchException().

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 1145 of file exception.c.

References ThrowMagickExceptionList().

Referenced by AcquireCacheNexusPixels(), AcquireCoderCache(), AcquireColorCache(), AcquireFxThreadSet(), AcquireMagicList(), AcquireMatrixInfo(), AcquirePolicyCache(), AcquireStreamPixels(), AnimateImages(), BlobToImage(), ChannelFxImage(), CheckImageColors(), CheckPrimitiveExtent(), CLAHEImage(), ClassifyImageColors(), CloneImage(), CloneImages(), ComplexImages(), CompositeImage(), ConnectPixelCacheServer(), ConstrainColormapIndex(), CropImage(), CustomStreamToImage(), DeleteImages(), DisplayImages(), DistortImage(), EvaluateImages(), ExportBlackQuantum(), ExportCMYKAQuantum(), ExportCMYKOQuantum(), ExportCMYKQuantum(), ExportImagePixels(), ExportIndexAlphaQuantum(), ExportIndexQuantum(), ExternalDelegateCommand(), FileToBlob(), FileToImage(), ForwardFourierTransformImage(), FxEvaluateSubexpression(), FxGetSymbol(), FxSubexpression(), GenerateCoefficients(), GetColorCompliance(), GetConfigureOptions(), GetConfigurePaths(), GetDelegateCommand(), GetEdgeBoundingBox(), GetImageBoundingBox(), GetImageDynamicThreshold(), GetImageFeatures(), GetImageHistogram(), GetImageTotalInkDensity(), GetMultilineTypeMetrics(), GetThresholdMapFile(), GetTypeInfoByFamily(), GetVirtualPixelCacheNexus(), GetVirtualPixelStream(), HorizontalFilter(), ImageListToArray(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), ImageToFile(), ImportBlackQuantum(), ImportCMYKAQuantum(), ImportCMYKOQuantum(), ImportCMYKQuantum(), ImportImagePixels(), ImportIndexAlphaQuantum(), ImportIndexQuantum(), InterpretDelegateProperties(), InterpretImageProperties(), InverseFourierTransformImage(), InvokeDelegate(), InvokeDynamicImageFilter(), IsCoderAuthorized(), KapurThreshold(), LiquidRescaleImage(), ListThresholdMapFile(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), MorphologyImage(), NewXMLTree(), OpenBlob(), OpenPixelCache(), OrderedDitherImage(), OTSUThreshold(), ParseAffineGeometry(), ParseCloseTag(), ParseGravityGeometry(), ParseInternalDoctype(), ParseLogHandlers(), ParsePageGeometry(), ParseRegionGeometry(), PersistPixelCache(), PingBlob(), PolynomialImage(), ProfileImage(), QuantizeImages(), QueryColorCompliance(), QueueAuthenticPixelCacheNexus(), QueueAuthenticPixelsStream(), ReadImage(), RegisterStaticModule(), RemoteDisplayCommand(), RemoveZeroDelayLayers(), RenderFreetype(), RenderMVGContent(), RenderType(), SetImageProfileInternal(), SetImageProperty(), SetImageRegistry(), SetPixelCacheNexusPixels(), SetResampleFilter(), StreamImagePixels(), StringToArrayOfDoubles(), SyncAuthenticPixelsStream(), SyncImage(), ThrowException(), TraceBezier(), TraceEllipse(), ValidateColormapValue(), VerticalFilter(), WriteImage(), XRenderImage(), and ZLIBEncodeImage().

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

Variable Documentation

ErrorHandler error_handler = DefaultErrorHandler
static

Definition at line 83 of file exception.c.

Referenced by MagickError(), and SetErrorHandler().

FatalErrorHandler fatal_error_handler = DefaultFatalErrorHandler
static

Definition at line 86 of file exception.c.

Referenced by MagickFatalError(), and SetFatalErrorHandler().

WarningHandler warning_handler = DefaultWarningHandler
static

Definition at line 89 of file exception.c.

Referenced by MagickWarning(), and SetWarningHandler().