exception.c File Reference

#include "MagickCore/studio.h"
#include "MagickCore/client.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/linked-list.h"
#include "MagickCore/locale_.h"
#include "MagickCore/log.h"
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/string_.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"

Defines

#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

Define Documentation

#define MaxExceptionList   64

Referenced by ThrowException().


Function Documentation

MagickExport ExceptionInfo* AcquireExceptionInfo ( void   ) 
MagickExport void CatchException ( ExceptionInfo exception  ) 
MagickExport void ClearMagickException ( ExceptionInfo exception  ) 
MagickExport ExceptionInfo* CloneExceptionInfo ( ExceptionInfo exception  ) 
static void DefaultErrorHandler ( const ExceptionType   magick_unusedseverity,
const char *  reason,
const char *  description 
) [static]
static void DefaultErrorHandler ( const   ExceptionType,
const char *  ,
const char *   
) [static]
static void DefaultFatalErrorHandler ( const ExceptionType  severity,
const char *  reason,
const char *  description 
)
static void DefaultWarningHandler ( const ExceptionType   magick_unusedseverity,
const char *  reason,
const char *  description 
) [static]
static void DefaultWarningHandler ( const   ExceptionType,
const char *  ,
const char *   
)
static void* DestroyExceptionElement ( void *  exception  )  [static]
MagickExport ExceptionInfo* DestroyExceptionInfo ( ExceptionInfo exception  ) 
MagickPrivate MagickBooleanType ExceptionComponentGenesis ( void   ) 
MagickPrivate void ExceptionComponentTerminus ( void   ) 
static const char* ExceptionSeverityToTag ( const ExceptionType  severity  )  [static]
MagickExport char* GetExceptionMessage ( const int  error  ) 
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 
)

References error_handler.

Referenced by CatchException().

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

References fatal_error_handler.

Referenced by CatchException().

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

References warning_handler.

Referenced by CatchException().

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 ThrowMagickException ( ExceptionInfo exception,
const char *  module,
const char *  function,
const size_t  line,
const ExceptionType  severity,
const char *  tag,
const char *  format,
  ... 
)

References ThrowMagickExceptionList().

Referenced by AcquireCacheNexusPixels(), AcquireCoderCache(), AcquireColorCache(), AcquireFxThreadSet(), AcquireMagicList(), AcquireMatrixInfo(), AcquirePolicyCache(), AcquireStreamPixels(), AnimateImages(), BlobToImage(), ChannelFxImage(), CheckImageColors(), CheckPrimitiveExtent(), CLAHEImage(), ClassifyImageColors(), CloneImage(), CloneImages(), CMSExceptionHandler(), 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(), 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]

Referenced by MagickError(), and SetErrorHandler().

FatalErrorHandler fatal_error_handler = DefaultFatalErrorHandler [static]
WarningHandler warning_handler = DefaultWarningHandler [static]

Referenced by MagickWarning(), and SetWarningHandler().


Generated on 26 Aug 2019 for MagickCore by  doxygen 1.6.1