MagickCore
6.8.5
|
#include "magick/studio.h"
#include "magick/client.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/hashmap.h"
#include "magick/locale_.h"
#include "magick/log.h"
#include "magick/magick.h"
#include "magick/memory_.h"
#include "magick/string_.h"
#include "magick/utility.h"
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 ExceptionInfo * | AcquireExceptionInfo (void) |
static void * | DestroyExceptionElement (void *exception) |
MagickExport void | ClearMagickException (ExceptionInfo *exception) |
MagickExport void | CatchException (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 ExceptionInfo * | DestroyExceptionInfo (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) |
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 |
MagickExport ExceptionInfo* AcquireExceptionInfo | ( | void | ) |
References AcquireMagickMemory(), GetExceptionInfo(), MagickTrue, _ExceptionInfo::relinquish, ResourceLimitFatalError, and ThrowFatalException.
Referenced by AcquireFxInfo(), CatchImageException(), CloneImageView(), CloseMagickLog(), DistributePixelCacheClient(), ExpandFilenames(), GetConfigureOption(), GetDrawInfo(), GetImageInfo(), GetImageMagick(), GetLocaleMessage(), GetMagickHomeURL(), GetPathTemplate(), GetPolicyValue(), GetXMPProperty(), GlobExpression(), IdentifyImage(), IsEventLogging(), IsRightsAuthorized(), LoadTypeList(), LogMagickEventList(), MagickMonitor(), MagickToMime(), NewImageView(), NewImageViewRegion(), OpenBlob(), OptimizeLayerFrames(), PingImages(), ReadImage(), ReadImages(), SetImageInfo(), SetLogEventMask(), SetLogFormat(), ShredFile(), TranslateEvent(), WriteImage(), and WriteImages().
MagickExport void CatchException | ( | ExceptionInfo * | exception | ) |
References ClearMagickException(), _ExceptionInfo::description, ErrorException, _ExceptionInfo::exceptions, FatalErrorException, GetNextValueInLinkedList(), LockSemaphoreInfo(), MagickError(), MagickFatalError(), MagickSignature, MagickWarning(), _ExceptionInfo::reason, ResetLinkedListIterator(), _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, UnlockSemaphoreInfo(), and WarningException.
Referenced by CatchImageException(), DrawImage(), and RenderPostscript().
MagickExport void ClearMagickException | ( | ExceptionInfo * | exception | ) |
References _ExceptionInfo::description, DestroyExceptionElement(), _ExceptionInfo::exceptions, LockSemaphoreInfo(), MagickSignature, _ExceptionInfo::reason, RemoveLastElementFromLinkedList(), _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, UndefinedException, and UnlockSemaphoreInfo().
Referenced by CatchException(), CropImageToTiles(), FxEvaluateSubexpression(), ListMagickInfo(), LoadMimeLists(), and SetExceptionInfo().
|
static |
|
static |
References FormatLocaleFile(), and GetClientName().
static void DefaultFatalErrorHandler | ( | const ExceptionType | severity, |
const char * | reason, | ||
const char * | description | ||
) |
References FatalErrorException, FormatLocaleFile(), GetClientName(), and MagickCoreTerminus().
static void DefaultWarningHandler | ( | const ExceptionType | , |
const char * | , | ||
const char * | |||
) |
|
static |
References FormatLocaleFile(), and GetClientName().
|
static |
References _ExceptionInfo::description, DestroyString(), _ExceptionInfo::reason, and RelinquishMagickMemory().
Referenced by ClearMagickException(), and DestroyExceptionInfo().
MagickExport ExceptionInfo* DestroyExceptionInfo | ( | ExceptionInfo * | exception | ) |
References AcquireSemaphoreInfo(), DestroyExceptionElement(), DestroyLinkedList(), DestroySemaphoreInfo(), _ExceptionInfo::exceptions, LockSemaphoreInfo(), MagickFalse, MagickSignature, _ExceptionInfo::relinquish, RelinquishMagickMemory(), _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, UndefinedException, and UnlockSemaphoreInfo().
Referenced by CatchImageException(), CloseMagickLog(), DestroyFxInfo(), DestroyImage(), DestroyImageView(), DistributePixelCacheClient(), ExpandFilenames(), GetConfigureOption(), GetDrawInfo(), GetImageInfo(), GetImageMagick(), GetLocaleMessage(), GetMagickHomeURL(), GetPathTemplate(), GetPolicyValue(), GetXMPProperty(), GlobExpression(), IdentifyImage(), IsEventLogging(), IsRightsAuthorized(), LoadTypeList(), LogMagickEventList(), MagickMonitor(), MagickToMime(), OpenBlob(), OptimizeLayerFrames(), PingImages(), ReadImage(), ReadImages(), SetImageInfo(), SetLogEventMask(), SetLogFormat(), ShredFile(), TranslateEvent(), WriteImage(), and WriteImages().
|
static |
References BlobError, BlobFatalError, BlobWarning, CacheError, CacheFatalError, CacheWarning, CoderError, CoderFatalError, CoderWarning, ConfigureError, ConfigureFatalError, ConfigureWarning, CorruptImageError, CorruptImageFatalError, CorruptImageWarning, DelegateError, DelegateFatalError, DelegateWarning, DrawError, DrawFatalError, DrawWarning, FileOpenError, FileOpenFatalError, FileOpenWarning, FilterError, FilterFatalError, FilterWarning, ImageError, ImageFatalError, ImageWarning, MissingDelegateError, MissingDelegateFatalError, MissingDelegateWarning, ModuleError, ModuleFatalError, ModuleWarning, MonitorError, MonitorFatalError, MonitorWarning, OptionError, OptionFatalError, OptionWarning, PolicyError, PolicyFatalError, PolicyWarning, RegistryError, RegistryFatalError, RegistryWarning, ResourceLimitError, ResourceLimitFatalError, ResourceLimitWarning, StreamError, StreamFatalError, StreamWarning, TypeError, TypeFatalError, TypeWarning, WandError, WandFatalError, WandWarning, XServerError, XServerFatalError, and XServerWarning.
Referenced by GetLocaleExceptionMessage().
MagickExport void GetExceptionInfo | ( | ExceptionInfo * | exception | ) |
MagickExport char* GetExceptionMessage | ( | const int | error | ) |
References ConstantString(), CopyMagickString(), and MaxTextExtent.
Referenced by InitializeMagickList().
MagickExport const char* GetLocaleExceptionMessage | ( | const ExceptionType | severity, |
const char * | tag | ||
) |
References ExceptionSeverityToTag(), FormatLocaleString(), GetLocaleMessage(), and MaxTextExtent.
Referenced by GetImageViewException(), and ThrowMagickExceptionList().
MagickExport void InheritException | ( | ExceptionInfo * | exception, |
const ExceptionInfo * | relative | ||
) |
References _ExceptionInfo::description, _ExceptionInfo::exceptions, GetNextValueInLinkedList(), LockSemaphoreInfo(), MagickSignature, _ExceptionInfo::reason, ResetLinkedListIterator(), _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, ThrowException(), and UnlockSemaphoreInfo().
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AppendImages(), BlueShiftImage(), CloneImage(), CloneImageView(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompareImageChannels(), ConstituteImage(), DespeckleImage(), DistortImage(), DistortResizeImage(), DuplexTransferImageViewIterator(), EnhanceImage(), EvaluateImageChannel(), EvaluateImages(), ExtentImage(), FilterImageChannel(), FrameImage(), FunctionImageChannel(), FxImageChannel(), GetImageException(), HorizontalFilter(), ImagesToBlob(), ImageToBlob(), ImplodeImage(), InterpolativeResizeImage(), MontageImageList(), MorphImages(), MorphologyApply(), MotionBlurImageChannel(), OilPaintImage(), OrderedPosterizeImageChannel(), PolaroidImage(), PolynomialImageChannel(), RadialBlurImageChannel(), RandomThresholdImageChannel(), ScaleImage(), SelectiveBlurImageChannel(), SepiaToneImage(), SetImageViewIterator(), ShadeImage(), ShearImage(), ShearRotateImage(), SimilarityMetricImage(), SmushImages(), SparseColorImage(), SpliceImage(), SpreadImage(), StatisticImageChannel(), SteganoImage(), StereoAnaglyphImage(), SwirlImage(), TintImage(), TransferImageViewIterator(), UniqueImageColors(), UpdateImageViewIterator(), VerticalFilter(), VignetteImage(), and WaveImage().
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 | ) |
References error_handler.
MagickExport FatalErrorHandler SetFatalErrorHandler | ( | FatalErrorHandler | handler | ) |
References fatal_error_handler.
Referenced by LoadLocaleList().
MagickExport WarningHandler SetWarningHandler | ( | WarningHandler | handler | ) |
References warning_handler.
Referenced by IdentifyImage().
MagickExport MagickBooleanType ThrowException | ( | ExceptionInfo * | exception, |
const ExceptionType | severity, | ||
const char * | reason, | ||
const char * | description | ||
) |
References AcquireMagickMemory(), AppendValueToLinkedList(), ConstantString(), _ExceptionInfo::description, _ExceptionInfo::exceptions, GetLastValueInLinkedList(), LocaleCompare(), LockSemaphoreInfo(), MagickSignature, MagickTrue, _ExceptionInfo::reason, ResetMagickMemory(), ResourceLimitFatalError, _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, ThrowFatalException, and UnlockSemaphoreInfo().
Referenced by InheritException(), and ThrowMagickExceptionList().
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 AccelerateConvolveImage(), AcquireCacheNexusPixels(), AcquireFxThreadSet(), AcquireRadonInfo(), AcquireStreamPixels(), AnimateImages(), BlobToImage(), ClassifyImageColors(), CompositeImageChannel(), ConnectPixelCacheServer(), ConstrainColormapIndex(), CropImage(), DeleteImages(), DisplayImages(), DistortImage(), DrawImage(), EvaluateImages(), ExportBlackQuantum(), ExportCMYKAQuantum(), ExportCMYKQuantum(), ExportImagePixels(), ExportIndexAlphaQuantum(), ExportIndexQuantum(), FileToBlob(), ForwardFourierTransformImage(), FxEvaluateSubexpression(), FxGetSymbol(), FxSubexpression(), GenerateCoefficients(), GetColorCompliance(), GetConfigureBlob(), GetConfigureOptions(), GetDelegateCommand(), GetImageBoundingBox(), GetImageChannelDistortions(), GetImageChannelFeatures(), GetImageDynamicThreshold(), GetImageHistogram(), GetImageRegistry(), GetImageTotalInkDensity(), GetThresholdMapFile(), GetTypeInfoByFamily(), GetVirtualPixelsFromNexus(), GetVirtualPixelStream(), HorizontalFilter(), ImageListToArray(), ImagesToBlob(), ImageToBlob(), ImageToFile(), ImportBlackQuantum(), ImportCMYKAQuantum(), ImportCMYKQuantum(), ImportImagePixels(), ImportIndexAlphaQuantum(), ImportIndexQuantum(), InterpretImageProperties(), InverseFourierTransformImage(), InvokeDelegate(), InvokeDynamicImageFilter(), IsHistogramImage(), IsPaletteImage(), LiquidRescaleImage(), ListThresholdMapFile(), LoadCoderList(), LoadCoderLists(), LoadColorList(), LoadColorLists(), LoadConfigureList(), LoadConfigureLists(), LoadDelegateList(), LoadLocaleList(), LoadLogList(), LoadLogLists(), LoadMagicList(), LoadMagicLists(), LoadMimeList(), LoadPolicyList(), LoadPolicyLists(), LoadTypeList(), NewXMLTree(), OpenBlob(), OpenPixelCache(), OrderedPosterizeImageChannel(), ParseAffineGeometry(), ParseCloseTag(), ParseGravityGeometry(), ParseInternalDoctype(), ParsePageGeometry(), ParseRegionGeometry(), PingBlob(), PolynomialImageChannel(), ProfileImage(), QuantizeImages(), QueryMagickColorCompliance(), QueueAuthenticPixelCacheNexus(), QueueAuthenticPixelsStream(), ReadImage(), RemoteDisplayCommand(), RemoveZeroDelayLayers(), RenderFreetype(), RenderType(), SetImageRegistry(), SetResampleFilter(), StreamImagePixels(), SyncAuthenticPixelsStream(), SyncImage(), SystemCommand(), 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 | ||
) |
References ConcatenateMagickString(), CopyMagickString(), ErrorException, ExceptionEvent, FatalErrorException, FormatLocaleString(), GetLocaleExceptionMessage(), GetPathComponent(), LogMagickEvent(), MagickSignature, MaxTextExtent, _ExceptionInfo::signature, TailPath, ThrowException(), and WarningException.
Referenced by ThrowMagickException().
|
static |
Referenced by MagickError(), and SetErrorHandler().
|
static |
Referenced by MagickFatalError(), and SetFatalErrorHandler().
|
static |
Referenced by MagickWarning(), and SetWarningHandler().