MagickCore 7.1.0
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)
 
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

◆ MaxExceptionList

#define MaxExceptionList   64

Definition at line 61 of file exception.c.

Function Documentation

◆ AcquireExceptionInfo()

◆ CatchException()

◆ ClearMagickException()

◆ CloneExceptionInfo()

◆ DefaultErrorHandler() [1/2]

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.

◆ DefaultErrorHandler() [2/2]

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

◆ DefaultFatalErrorHandler()

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

◆ DefaultWarningHandler() [1/2]

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.

◆ DefaultWarningHandler() [2/2]

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

◆ DestroyExceptionElement()

static void * DestroyExceptionElement ( void *  exception)
static

◆ DestroyExceptionInfo()

◆ ExceptionComponentGenesis()

MagickPrivate MagickBooleanType ExceptionComponentGenesis ( void  )

Definition at line 468 of file exception.c.

References AcquireSemaphoreInfo(), exception_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

◆ ExceptionComponentTerminus()

MagickPrivate void ExceptionComponentTerminus ( void  )

◆ ExceptionSeverityToTag()

◆ GetExceptionMessage()

MagickExport char * GetExceptionMessage ( const int  error)

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

References warning_handler.

Referenced by CatchException().

◆ SetErrorHandler()

◆ SetFatalErrorHandler()

◆ SetWarningHandler()

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

References module, and ThrowMagickExceptionList().

Referenced by AcquireCacheNexusPixels(), AcquireCoderCache(), AcquireColorCache(), AcquireFxInfoPrivate(), AcquireKernelBuiltIn(), AcquireMagicList(), AcquireMatrixInfo(), AcquirePolicyCache(), AcquirePolygonTLS(), AcquireStreamPixels(), AllocFxRt(), AnimateImages(), BlobToImage(), BuildRPN(), ChannelFxImage(), CheckImageColors(), CheckPrimitiveExtent(), ChkImgNum(), CLAHEImage(), ClassifyImageColors(), CloneImage(), CloneImages(), ClonePolygonEdgesTLS(), CollectStatistics(), ComplexImages(), CompositeImage(), ConnectPixelCacheServer(), ConstrainColormapIndex(), ConvertPathToPolygon(), ConvertPrimitiveToPath(), CropImage(), CustomStreamToImage(), DeleteImages(), DisplayImages(), DistortImage(), DrawDashPolygon(), DrawPrimitive(), EvaluateImages(), ExecuteRPN(), ExpectChar(), ExportBlackQuantum(), ExportCMYKAQuantum(), ExportCMYKOQuantum(), ExportCMYKQuantum(), ExportImagePixels(), ExportIndexAlphaQuantum(), ExportIndexQuantum(), ExportMultispectralQuantum(), ExtendOperatorStack(), ExtendRPN(), ExtendUserSymbols(), ExternalDelegateCommand(), FileToBlob(), FileToImage(), ForwardFourierTransformImage(), FxEvaluateChannelExpression(), GenerateCoefficients(), GetChannelQualifier(), GetColorCompliance(), GetConfigureOptions(), GetConfigurePaths(), GetConstantColour(), GetDelegateCommand(), GetEdgeBoundingBox(), GetFunction(), GetHexColour(), GetHslFlt(), GetHslInt(), GetImageBoundingBox(), GetImageDynamicThreshold(), GetImageFeatures(), GetImageHistogram(), GetImageStatistics(), GetImageTotalInkDensity(), GetImgAttrToken(), GetIntensity(), GetMultilineTypeMetrics(), GetOperand(), GetOperator(), GetProperty(), GetThresholdMapFile(), GetToken(), GetTypeInfoByFamily(), GetVirtualPixelCacheNexus(), GetVirtualPixelStream(), HorizontalFilter(), ImageListToArray(), ImageStat(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), ImageToFile(), ImportBlackQuantum(), ImportCMYKAQuantum(), ImportCMYKOQuantum(), ImportCMYKQuantum(), ImportImagePixels(), ImportIndexAlphaQuantum(), ImportIndexQuantum(), ImportMultispectralQuantum(), InitFx(), InterpretDelegateProperties(), InterpretImageProperties(), InverseFourierTransformImage(), InvokeDelegate(), InvokeDynamicImageFilter(), IsCoderAuthorized(), KapurThreshold(), LiquidRescaleImage(), ListThresholdMapFile(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), MaybeXYWH(), MontageImageList(), MorphologyImage(), MorphologyPrimitive(), NewXMLTree(), OpenBlob(), OpenPixelCache(), OrderedDitherImage(), OTSUThreshold(), ParseAffineGeometry(), ParseCloseTag(), ParseGravityGeometry(), ParseInternalDoctype(), ParsePageGeometry(), ParseRegionGeometry(), PersistPixelCache(), PingBlob(), PolynomialImage(), PopVal(), ProcessTernaryOpr(), ProfileImage(), PushVal(), QuantizeImages(), QueryColorCompliance(), QueueAuthenticPixelCacheNexus(), QueueAuthenticPixelsStream(), ReadImage(), RegisterStaticModule(), RemoteDisplayCommand(), RemoveZeroDelayLayers(), RenderFreetype(), RenderMVGContent(), RenderType(), ResolveTernaryAddresses(), SetImageExtent(), SetImageProperty(), SetImageRegistry(), SetPixelCacheNexusPixels(), SetResampleFilter(), StreamImagePixels(), StringToArrayOfDoubles(), SyncAuthenticPixelsStream(), SyncImage(), ThrowException(), TraceBezier(), TraceStrokePolygon(), TranslateExpression(), ValidateColormapValue(), ValidateXMPProfile(), 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 83 of file exception.c.

Referenced by MagickError(), and SetErrorHandler().

◆ exception_semaphore

◆ fatal_error_handler

FatalErrorHandler fatal_error_handler = DefaultFatalErrorHandler
static

Definition at line 86 of file exception.c.

Referenced by MagickFatalError(), and SetFatalErrorHandler().

◆ warning_handler

WarningHandler warning_handler = DefaultWarningHandler
static

Definition at line 89 of file exception.c.

Referenced by MagickWarning(), and SetWarningHandler().