MagickCore  7.0.8
Convert, Edit, Or Compose Bitmap Images
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)
 
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
 

Macro Definition Documentation

◆ MaxExceptionList

#define MaxExceptionList   64

Definition at line 60 of file exception.c.

Referenced by ThrowException().

Function Documentation

◆ AcquireExceptionInfo()

◆ CatchException()

◆ ClearMagickException()

◆ CloneExceptionInfo()

◆ DefaultErrorHandler() [1/2]

static void DefaultErrorHandler ( const ExceptionType  ,
const char *  ,
const char *   
)
static

◆ DefaultErrorHandler() [2/2]

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

Definition at line 291 of file exception.c.

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

◆ DefaultFatalErrorHandler()

static void DefaultFatalErrorHandler ( const ExceptionType  severity,
const char *  reason,
const char *  description 
)

◆ DefaultWarningHandler() [1/2]

static void DefaultWarningHandler ( const ExceptionType  ,
const char *  ,
const char *   
)

◆ DefaultWarningHandler() [2/2]

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

Definition at line 375 of file exception.c.

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

◆ DestroyExceptionElement()

static void* DestroyExceptionElement ( void *  exception)
static

◆ DestroyExceptionInfo()

◆ ExceptionSeverityToTag()

◆ GetExceptionMessage()

MagickExport char* GetExceptionMessage ( const int  error)

Definition at line 466 of file exception.c.

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

◆ GetLocaleExceptionMessage()

MagickExport const char* GetLocaleExceptionMessage ( const ExceptionType  severity,
const char *  tag 
)

◆ InheritException()

◆ InitializeExceptionInfo()

◆ MagickError()

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

Definition at line 714 of file exception.c.

References error_handler.

Referenced by CatchException().

◆ MagickFatalError()

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

Definition at line 750 of file exception.c.

References fatal_error_handler.

Referenced by CatchException().

◆ MagickWarning()

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

Definition at line 784 of file exception.c.

References warning_handler.

Referenced by CatchException().

◆ SetErrorHandler()

MagickExport ErrorHandler SetErrorHandler ( ErrorHandler  handler)

Definition at line 814 of file exception.c.

References error_handler.

◆ SetFatalErrorHandler()

MagickExport FatalErrorHandler SetFatalErrorHandler ( FatalErrorHandler  handler)

Definition at line 847 of file exception.c.

References fatal_error_handler.

Referenced by LoadLocaleCache().

◆ SetWarningHandler()

MagickExport WarningHandler SetWarningHandler ( WarningHandler  handler)

Definition at line 880 of file exception.c.

References warning_handler.

Referenced by IdentifyImage().

◆ ThrowException()

◆ ThrowMagickException()

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

References module, and ThrowMagickExceptionList().

Referenced by AcquireCacheNexusPixels(), AcquireCoderCache(), AcquireColorCache(), AcquireConfigureCache(), AcquireFxThreadSet(), AcquireLogCache(), AcquireMagicCache(), AcquireMatrixInfo(), AcquirePolicyCache(), AcquireStreamPixels(), AnimateImages(), BlobToImage(), ChannelFxImage(), CheckImageColors(), CheckPrimitiveExtent(), ClassifyImageColors(), CloneImage(), 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(), 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(), LoadCoderCache(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMagicCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), MorphologyImage(), NewXMLTree(), OpenBlob(), OpenPixelCache(), OrderedDitherImage(), OTSUThreshold(), ParseAffineGeometry(), ParseCloseTag(), ParseGravityGeometry(), ParseInternalDoctype(), ParsePageGeometry(), ParseRegionGeometry(), PersistPixelCache(), PingBlob(), PolynomialImage(), ProfileImage(), QuantizeImages(), QueryColorCompliance(), QueueAuthenticPixelCacheNexus(), QueueAuthenticPixelsStream(), ReadImage(), RegisterStaticModule(), RemoteDisplayCommand(), RemoveZeroDelayLayers(), RenderFreetype(), RenderMVGContent(), RenderType(), SetImageProperty(), SetImageRegistry(), SetResampleFilter(), StreamImagePixels(), StringToArrayOfDoubles(), SyncAuthenticPixelsStream(), SyncImage(), ThrowException(), TraceEllipse(), ValidateColormapValue(), VerticalFilter(), WriteImage(), XRenderImage(), and ZLIBEncodeImage().

◆ ThrowMagickExceptionList()

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

◆ error_handler

ErrorHandler error_handler = DefaultErrorHandler
static

Definition at line 82 of file exception.c.

Referenced by MagickError(), and SetErrorHandler().

◆ fatal_error_handler

FatalErrorHandler fatal_error_handler = DefaultFatalErrorHandler
static

Definition at line 85 of file exception.c.

Referenced by MagickFatalError(), and SetFatalErrorHandler().

◆ warning_handler

WarningHandler warning_handler = DefaultWarningHandler
static

Definition at line 88 of file exception.c.

Referenced by MagickWarning(), and SetWarningHandler().