#include "MagickCore/log.h"
#include "MagickCore/magick.h"
#include "MagickCore/string_.h"
Go to the source code of this file.
Defines | |
#define | ThrowBinaryException(severity, tag, context) |
#define | ThrowFatalException(severity, tag) |
#define | ThrowFileException(exception, severity, tag, context) |
#define | ThrowImageException(severity, tag) |
#define | ThrowReaderException(severity, tag) |
#define | ThrowWriterException(severity, tag) |
Functions | |
MagickPrivate void | ExceptionComponentTerminus (void) |
MagickPrivate void | InitializeExceptionInfo (ExceptionInfo *) |
MagickPrivate MagickBooleanType | ExceptionComponentGenesis (void) |
#define ThrowBinaryException | ( | severity, | |||
tag, | |||||
context | ) |
{ \ (void) ThrowMagickException(exception,GetMagickModule(),severity, \ tag == (const char *) NULL ? "unknown" : tag,"`%s'",context); \ return(MagickFalse); \ }
Referenced by AcquireImageColormap(), AssignImageColors(), AutoThresholdImage(), CLAHEImage(), ClutImage(), ColorDecisionListImage(), ContrastStretchImage(), CopyImagePixels(), DecipherImage(), EncipherImage(), EqualizeImage(), FloodfillPaintImage(), GammaImage(), GetStructuralSimilarityDistortion(), GradientImage(), HuffmanDecodeImage(), HuffmanEncodeImage(), ImportImagePixels(), InjectImageBlob(), LinearStretchImage(), LZWEncodeImage(), OpenPixelCache(), PackbitsEncodeImage(), PasskeyDecipherImage(), PasskeyEncipherImage(), ProfileImage(), QuantizeImage(), RaiseImage(), RemapImage(), RemapImages(), RenderMVGContent(), SegmentImage(), SetGrayscaleImage(), SetImageExtent(), SortColormapByIntensity(), sRGBTransformImage(), SyncAuthenticPixelCacheNexus(), and TransformsRGBImage().
#define ThrowFatalException | ( | severity, | |||
tag | ) |
{ \ char \ *fatal_message; \ \ ExceptionInfo \ *fatal_exception; \ \ fatal_exception=AcquireExceptionInfo(); \ fatal_message=GetExceptionMessage(errno); \ (void) ThrowMagickException(fatal_exception,GetMagickModule(),severity, \ tag == (const char *) NULL ? "unknown" : tag,"`%s'",fatal_message); \ fatal_message=DestroyString(fatal_message); \ CatchException(fatal_exception); \ (void) DestroyExceptionInfo(fatal_exception); \ MagickCoreTerminus(); \ _exit((int) (severity-FatalErrorException)+1); \ }
Referenced by AcquireCriticalMemory(), AcquireFxInfo(), AcquirePixelCache(), AcquirePixelCacheNexus(), AcquirePixelChannelMap(), AcquireRandomInfo(), AcquireRandomInfoThreadSet(), AcquireResampleFilterThreadSet(), AcquireSemaphoreInfo(), AcquireSignatureInfo(), AcquireStreamInfo(), AcquireString(), AcquireStringInfo(), AcquireVirtualCacheView(), AcquireVirtualMemory(), Ascii85Initialize(), BalanceSplayTree(), BlobToStringInfo(), CloneCacheView(), CloneDrawInfo(), ClonePixelCacheOnDisk(), ClonePixelInfo(), CloneString(), ConcatenateString(), ConcatenateStringInfo(), ConstantString(), DistributePixelCacheClient(), DistributePixelCacheServer(), EscapeParenthesis(), EscapeString(), ExpandFilenames(), GetCommandOptions(), GetImageDepth(), GetImageDistortion(), GetImageDistortions(), GetImageFeatures(), GetImagePixelCache(), GetImageViewException(), GetLocationStatistics(), GetPathComponents(), GetThresholdMapFile(), IncrementRandomNonce(), IterateOverSplayTree(), ListFiles(), LockMagickMutex(), MorphologyPrimitive(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), RenderMVGContent(), ResizeMagickMemory(), ScaleSpace(), SetImageDepth(), SetStringInfoLength(), SetXMLTreeAttribute(), SplaySplayTree(), StringInfoToHexString(), StringToArgv(), StringToStrings(), SubstituteString(), ThrowException(), and UnlockMagickMutex().
#define ThrowFileException | ( | exception, | |||
severity, | |||||
tag, | |||||
context | ) |
{ \ char \ *file_message; \ \ file_message=GetExceptionMessage(errno); \ (void) ThrowMagickException(exception,GetMagickModule(),severity, \ tag == (const char *) NULL ? "unknown" : tag,"'%s': %s",context, \ file_message); \ file_message=DestroyString(file_message); \ }
Referenced by BlobToFile(), ClipImagePath(), CustomStreamToImage(), FileToBlob(), FileToImage(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), ImageToFile(), InjectImageBlob(), InvokeDelegate(), OpenBlob(), OpenPixelCache(), ReadImage(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), RenderPostscript(), WritePixelCacheMetacontent(), and WritePixelCachePixels().
#define ThrowImageException | ( | severity, | |||
tag | ) |
{ \ (void) ThrowMagickException(exception,GetMagickModule(),severity, \ tag == (const char *) NULL ? "unknown" : tag,"`%s'",image->filename); \ return((Image *) NULL); \ }
Referenced by AdaptiveBlurImage(), AdaptiveSharpenImage(), BlurImage(), CannyEdgeImage(), ChopImage(), CloneImage(), CompareImagesLayers(), ConnectedComponentsImage(), DeskewImage(), DespeckleImage(), EdgeImage(), EmbossImage(), FrameImage(), GaussianBlurImage(), HoughLineImage(), InterpolativeResizeImage(), LocalContrastImage(), MontageImageList(), MotionBlurImage(), OilPaintImage(), OptimizeLayerFrames(), PreviewImage(), ResizeImage(), RotationalBlurImage(), SampleImage(), ScaleImage(), SelectiveBlurImage(), SharpenImage(), ShaveImage(), ShearImage(), ShearRotateImage(), StatisticImage(), StereoAnaglyphImage(), WaveImage(), and WaveletDenoiseImage().
#define ThrowReaderException | ( | severity, | |||
tag | ) |
{ \ (void) ThrowMagickException(exception,GetMagickModule(),severity, \ tag == (const char *) NULL ? "unknown" : tag,"`%s'",image_info->filename); \ if ((image) != (Image *) NULL) \ { \ (void) CloseBlob(image); \ image=DestroyImageList(image); \ } \ return((Image *) NULL); \ }
Referenced by ReadInlineImage().
#define ThrowWriterException | ( | severity, | |||
tag | ) |
{ \ (void) ThrowMagickException(exception,GetMagickModule(),severity, \ tag == (const char *) NULL ? "unknown" : tag,"`%s'",image->filename); \ if (image_info->adjoin != MagickFalse) \ while (image->previous != (Image *) NULL) \ image=image->previous; \ (void) CloseBlob(image); \ return(MagickFalse); \ }
MagickPrivate MagickBooleanType ExceptionComponentGenesis | ( | void | ) |
References AcquireSemaphoreInfo(), exception_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickPrivate void ExceptionComponentTerminus | ( | void | ) |
Referenced by MagickCoreTerminus().
MagickPrivate void InitializeExceptionInfo | ( | ExceptionInfo * | ) |