|
MagickCore
6.9.1
|
#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"
Go to the source code of this file.
Variables | |
| static ErrorHandler | error_handler = DefaultErrorHandler |
| static FatalErrorHandler | fatal_error_handler = DefaultFatalErrorHandler |
| static WarningHandler | warning_handler = DefaultWarningHandler |
| MagickExport ExceptionInfo* AcquireExceptionInfo | ( | void | ) |
Definition at line 101 of file exception.c.
References AcquireMagickMemory(), InitializeExceptionInfo(), MagickTrue, _ExceptionInfo::relinquish, ResourceLimitFatalError, and ThrowFatalException.
Referenced by AcquireFxInfo(), AcquireKernelInfo(), CatchImageException(), CloneImageView(), CloseMagickLog(), DistributePixelCacheClient(), ExpandFilenames(), GetConfigureOption(), GetDrawInfo(), GetImageInfo(), GetImageMagick(), GetLocaleMessage(), GetMagickHomeURL(), GetPathTemplate(), GetPolicyValue(), GetXMPProperty(), GlobExpression(), IdentifyImage(), IsEventLogging(), IsRightsAuthorized(), LoadTypeCache(), LogComponentGenesis(), LogMagickEventList(), MagickMonitor(), MagickToMime(), NewImageView(), NewImageViewRegion(), OpenBlob(), OptimizeLayerFrames(), PingImages(), PrintChannelLocations(), ReadImage(), ReadImages(), SetImageInfo(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), TranslateEvent(), WriteImage(), and WriteImages().
| MagickExport void CatchException | ( | ExceptionInfo * | exception | ) |
Definition at line 191 of file exception.c.
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().
| MagickPrivate MagickBooleanType ClearExceptionInfo | ( | ExceptionInfo * | exception, |
| MagickBooleanType | relinquish | ||
| ) |
Definition at line 404 of file exception.c.
References ActivateSemaphoreInfo(), ClearLinkedList(), DestroyExceptionElement(), DestroyLinkedList(), DestroySemaphoreInfo(), _ExceptionInfo::exceptions, LockSemaphoreInfo(), MagickFalse, MagickSignature, _ExceptionInfo::relinquish, _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, UndefinedException, and UnlockSemaphoreInfo().
Referenced by DestroyExceptionInfo(), and DestroyImage().
| MagickExport void ClearMagickException | ( | ExceptionInfo * | exception | ) |
Definition at line 152 of file exception.c.
References ClearLinkedList(), _ExceptionInfo::description, DestroyExceptionElement(), _ExceptionInfo::exceptions, LockSemaphoreInfo(), MagickSignature, _ExceptionInfo::reason, _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, UndefinedException, and UnlockSemaphoreInfo().
Referenced by CatchException(), CropImageToTiles(), FxEvaluateSubexpression(), ListMagickInfo(), and SetExceptionInfo().
| MagickExport ExceptionInfo* CloneExceptionInfo | ( | ExceptionInfo * | exception | ) |
Definition at line 241 of file exception.c.
References AcquireMagickMemory(), InheritException(), InitializeExceptionInfo(), MagickTrue, _ExceptionInfo::relinquish, ResourceLimitFatalError, and ThrowFatalException.
|
static |
|
static |
Definition at line 283 of file exception.c.
References FormatLocaleFile(), GetClientName(), and magick_unreferenced.
| static void DefaultFatalErrorHandler | ( | const ExceptionType | severity, |
| const char * | reason, | ||
| const char * | description | ||
| ) |
Definition at line 325 of file exception.c.
References FatalErrorException, FormatLocaleFile(), GetClientName(), and MagickCoreTerminus().
| static void DefaultWarningHandler | ( | const ExceptionType | , |
| const char * | , | ||
| const char * | |||
| ) |
|
static |
Definition at line 367 of file exception.c.
References FormatLocaleFile(), GetClientName(), and magick_unreferenced.
|
static |
Definition at line 138 of file exception.c.
References _ExceptionInfo::description, DestroyString(), _ExceptionInfo::reason, and RelinquishMagickMemory().
Referenced by ClearExceptionInfo(), and ClearMagickException().
| MagickExport ExceptionInfo* DestroyExceptionInfo | ( | ExceptionInfo * | exception | ) |
Definition at line 431 of file exception.c.
References ClearExceptionInfo(), MagickFalse, and RelinquishMagickMemory().
Referenced by AcquireKernelInfo(), CatchImageException(), CloseMagickLog(), DestroyFxInfo(), DestroyImageView(), DistributePixelCacheClient(), ExpandFilenames(), GetConfigureOption(), GetDrawInfo(), GetImageInfo(), GetImageMagick(), GetLocaleMessage(), GetMagickHomeURL(), GetPathTemplate(), GetPolicyValue(), GetXMPProperty(), GlobExpression(), IdentifyImage(), IsEventLogging(), IsRightsAuthorized(), LoadTypeCache(), LogComponentGenesis(), LogMagickEventList(), MagickMonitor(), MagickToMime(), OpenBlob(), OptimizeLayerFrames(), PingImages(), ReadImage(), ReadImages(), SetImageInfo(), SetLogEventMask(), SetLogFormat(), SetLogMethod(), TranslateEvent(), WriteImage(), and WriteImages().
|
static |
Definition at line 507 of file exception.c.
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 char* GetExceptionMessage | ( | const int | error | ) |
Definition at line 461 of file exception.c.
References ConstantString(), CopyMagickString(), and MaxTextExtent.
| MagickExport const char* GetLocaleExceptionMessage | ( | const ExceptionType | severity, |
| const char * | tag | ||
| ) |
Definition at line 579 of file exception.c.
References ExceptionSeverityToTag(), FormatLocaleString(), GetLocaleMessage(), and MaxTextExtent.
Referenced by GetImageViewException(), and ThrowMagickExceptionList().
| MagickExport void InheritException | ( | ExceptionInfo * | exception, |
| const ExceptionInfo * | relative | ||
| ) |
Definition at line 623 of file exception.c.
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(), CloneExceptionInfo(), CloneImage(), CloneImageView(), ColorizeImage(), ColorMatrixImage(), CombineImages(), CompareImageChannels(), ConstituteImage(), DespeckleImage(), DistortImage(), DistortResizeImage(), DuplexTransferImageViewIterator(), EnhanceImage(), EvaluateImageChannel(), EvaluateImages(), FilterImageChannel(), FrameImage(), FunctionImageChannel(), FxImageChannel(), GetImageException(), HorizontalFilter(), ImagesToBlob(), ImageToBlob(), ImplodeImage(), InterpolativeResizeImage(), KuwaharaImageChannel(), MeanShiftImage(), MontageImageList(), MorphImages(), MorphologyApply(), MotionBlurImageChannel(), OilPaintImage(), OrderedPosterizeImageChannel(), PolaroidImage(), PolynomialImageChannel(), RandomThresholdImageChannel(), RotationalBlurImageChannel(), ScaleImage(), SelectiveBlurImageChannel(), SepiaToneImage(), SetImageViewIterator(), ShadeImage(), ShearImage(), ShearRotateImage(), SimilarityMetricImage(), SmushImages(), SparseColorImage(), SpliceImage(), SpreadImage(), StatisticImageChannel(), SteganoImage(), StereoAnaglyphImage(), SwirlImage(), TintImage(), TransferImageViewIterator(), UniqueImageColors(), UpdateImageViewIterator(), VerticalFilter(), VignetteImage(), and WaveImage().
| MagickPrivate void InitializeExceptionInfo | ( | ExceptionInfo * | exception | ) |
Definition at line 671 of file exception.c.
References AllocateSemaphoreInfo(), _ExceptionInfo::exceptions, MagickSignature, NewLinkedList(), ResetMagickMemory(), _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, and UndefinedException.
Referenced by AcquireExceptionInfo(), AcquireImage(), CloneExceptionInfo(), and CloneImage().
| MagickExport void MagickError | ( | const ExceptionType | error, |
| const char * | reason, | ||
| const char * | description | ||
| ) |
Definition at line 709 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 745 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 779 of file exception.c.
References warning_handler.
Referenced by CatchException().
| MagickExport ErrorHandler SetErrorHandler | ( | ErrorHandler | handler | ) |
Definition at line 809 of file exception.c.
References error_handler.
| MagickExport FatalErrorHandler SetFatalErrorHandler | ( | FatalErrorHandler | handler | ) |
Definition at line 842 of file exception.c.
References fatal_error_handler.
Referenced by LoadLocaleCache().
| MagickExport WarningHandler SetWarningHandler | ( | WarningHandler | handler | ) |
Definition at line 875 of file exception.c.
References warning_handler.
Referenced by IdentifyImage().
| MagickExport MagickBooleanType ThrowException | ( | ExceptionInfo * | exception, |
| const ExceptionType | severity, | ||
| const char * | reason, | ||
| const char * | description | ||
| ) |
Definition at line 916 of file exception.c.
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, | ||
| ... | |||
| ) |
Definition at line 1047 of file exception.c.
References ThrowMagickExceptionList().
Referenced by AcquireCacheNexusPixels(), AcquireCoderCache(), AcquireColorCache(), AcquireConfigureCache(), AcquireFxThreadSet(), AcquireLogCache(), AcquireMagicCache(), AcquireMatrixInfo(), AcquirePolicyCache(), AcquireStreamPixels(), AnimateImages(), BlobToImage(), ClassifyImageColors(), CloneImage(), ComplexImages(), CompositeImageChannel(), ConnectPixelCacheServer(), ConstrainColormapIndex(), CropImage(), DeleteImages(), DisplayImages(), DistortImage(), DrawImage(), EvaluateImages(), ExportBlackQuantum(), ExportCMYKAQuantum(), ExportCMYKOQuantum(), ExportCMYKQuantum(), ExportImagePixels(), ExportIndexAlphaQuantum(), ExportIndexQuantum(), ExternalDelegateCommand(), 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(), ImportCMYKOQuantum(), ImportCMYKQuantum(), ImportImagePixels(), ImportIndexAlphaQuantum(), ImportIndexQuantum(), InterpretImageProperties(), InverseFourierTransformImage(), InvokeDelegate(), InvokeDynamicImageFilter(), IsHistogramImage(), IsPaletteImage(), IsValidColormapIndex(), LiquidRescaleImage(), ListThresholdMapFile(), LoadCoderCache(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMagicCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), MergeConnectedComponents(), NewXMLTree(), OpenBlob(), OpenPixelCache(), OrderedPosterizeImageChannel(), ParseAffineGeometry(), ParseCloseTag(), ParseGravityGeometry(), ParseInternalDoctype(), ParsePageGeometry(), ParseRegionGeometry(), PingBlob(), PolynomialImageChannel(), ProfileImage(), QuantizeImages(), QueryMagickColorCompliance(), QueueAuthenticPixelCacheNexus(), QueueAuthenticPixelsStream(), ReadImage(), RemoteDisplayCommand(), RemoveZeroDelayLayers(), RenderFreetype(), RenderType(), SetImageRegistry(), SetResampleFilter(), StatisticsComponentsStatistics(), StreamImagePixels(), StringToArrayOfDoubles(), SyncAuthenticPixelsStream(), SyncImage(), 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 | ||
| ) |
Definition at line 996 of file exception.c.
References ConcatenateMagickString(), CopyMagickString(), ErrorException, ExceptionEvent, FatalErrorException, FormatLocaleString(), GetLocaleExceptionMessage(), GetPathComponent(), LogMagickEvent(), MagickSignature, MaxTextExtent, _ExceptionInfo::signature, TailPath, ThrowException(), and WarningException.
Referenced by ThrowMagickException().
|
static |
Definition at line 75 of file exception.c.
Referenced by MagickError(), and SetErrorHandler().
|
static |
Definition at line 78 of file exception.c.
Referenced by MagickFatalError(), and SetFatalErrorHandler().
|
static |
Definition at line 81 of file exception.c.
Referenced by MagickWarning(), and SetWarningHandler().