#include "magick/log.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) |
| #define ThrowBinaryException | ( | severity, | |||
| tag, | |||||
| context | ) |
{ \
if (image != (Image *) NULL) \
(void) ThrowMagickException(&image->exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s'",context); \
return(MagickFalse); \
}
Definition at line 27 of file exception-private.h.
Referenced by AcquireImageColormap(), AssignImageColors(), Classify(), ClipPixelCacheNexus(), ColorDecisionListImage(), ColorFloodfillImage(), ContrastStretchImageChannel(), DecipherImage(), DrawImage(), EncipherImage(), EqualizeImageChannel(), FloodfillPaintImage(), GammaImageChannel(), GetImageChannelDistortion(), GradientImage(), HuffmanDecodeImage(), HuffmanEncodeImage(), ImportImagePixels(), InjectImageBlob(), IsImagesEqual(), LinearStretchImage(), MaskPixelCacheNexus(), MatteFloodfillImage(), OpenPixelCache(), PackbitsEncodeImage(), PasskeyDecipherImage(), PasskeyEncipherImage(), ProfileImage(), QuantizeImage(), RaiseImage(), RandomChannelThresholdImage(), RandomThresholdImageChannel(), RemapImage(), RemapImages(), RGBTransformImage(), SegmentImage(), SetGrayscaleImage(), SetImageClipMask(), SetImageMask(), SigmoidalContrastImageChannel(), SignatureImage(), SortColormapByIntensity(), SyncAuthenticPixelCacheNexus(), ThresholdImage(), ThresholdImageChannel(), TransformRGBImage(), and WriteImage().
| #define ThrowFatalException | ( | severity, | |||
| tag | ) |
{ \
ExceptionInfo \
exception; \
\
GetExceptionInfo(&exception); \
(void) ThrowMagickException(&exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s'",strerror(errno)); \
CatchException(&exception); \
(void) DestroyExceptionInfo(&exception); \
_exit(1); \
}
Definition at line 34 of file exception-private.h.
Referenced by AcquireCacheView(), AcquireDrawInfo(), AcquireExceptionInfo(), AcquireFxInfo(), AcquireImage(), AcquireImageInfo(), AcquirePixelCache(), AcquirePixelCacheNexus(), AcquireQuantizeInfo(), AcquireQuantumInfo(), AcquireRandomInfo(), AcquireResampleFilter(), AcquireResizeFilter(), AcquireSignatureInfo(), AcquireStreamInfo(), AcquireString(), AcquireStringInfo(), AcquireTimerInfo(), AcquireTokenInfo(), AllocateSemaphoreInfo(), AllocateString(), Ascii85Initialize(), BalanceSplayTree(), CloneBlobInfo(), CloneCacheView(), CloneDrawInfo(), CloneMagickPixelPacket(), CloneMontageInfo(), CloneQuantizeInfo(), CloneString(), ConcatenateString(), ConcatenateStringInfo(), ConstantString(), DrawImage(), EscapeString(), ExpandFilenames(), GetImageAttribute(), GetImageChannelDepth(), GetImageChannelDistortion(), GetImageChannelDistortions(), GetImageChannelStatistics(), GetImagePixelCache(), GetMagickOptions(), GetPathComponents(), GetThresholdMapFile(), IncrementRandomNonce(), InitializeMagickList(), IterateOverSplayTree(), ListFiles(), LoadCoderList(), LoadColorList(), LoadConfigureList(), LoadDelegateList(), LoadLocaleList(), LoadLogList(), LoadMagicList(), LoadMimeList(), LoadPolicyList(), LoadTypeList(), NewHashmap(), NewLinkedList(), NewSplayTree(), OptimalTau(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), RegisterMagickInfo(), ResizeMagickMemory(), ScaleSpace(), SetImageRegistry(), SetMagickInfo(), SetStringInfoLength(), SetXMLTreeAttribute(), SplaySplayTree(), StringInfoToHexString(), StringToArgv(), StringToList(), SubstituteString(), ThrowException(), and TraceBezier().
| #define ThrowFileException | ( | exception, | |||
| severity, | |||||
| tag, | |||||
| context | ) |
{ \
(void) ThrowMagickException(exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s': %s",context, \
strerror(errno)); \
}
Definition at line 46 of file exception-private.h.
Referenced by BlobToFile(), ClipImagePath(), CloneDiskToDiskPixelCache(), CloneDiskToMemoryPixelCache(), CloneMemoryToDiskPixelCache(), FileToBlob(), FileToImage(), ImagesToBlob(), ImageToBlob(), ImageToFile(), InjectImageBlob(), InvokeDelegate(), LoadCoderList(), LoadCoderLists(), LoadColorList(), LoadColorLists(), LoadConfigureList(), LoadConfigureLists(), LoadDelegateList(), LoadLocaleList(), LoadLogList(), LoadLogLists(), LoadMagicList(), LoadMagicLists(), LoadMimeList(), LoadPolicyList(), LoadPolicyLists(), LoadTypeList(), OpenBlob(), OpenPixelCache(), ReadImage(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), RenderPostscript(), WriteImage(), WritePixelCacheIndexes(), and WritePixelCachePixels().
| #define ThrowImageException | ( | severity, | |||
| tag | ) |
{ \
(void) ThrowMagickException(exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s'",image->filename); \
return((Image *) NULL); \
}
Definition at line 52 of file exception-private.h.
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AverageImages(), BlurImageChannel(), ChopImage(), CloneImage(), CombineImages(), CompareImageChannels(), CompareImageLayers(), ConstituteImage(), ConvolveImageChannel(), DeskewImage(), DespeckleImage(), EdgeImage(), EmbossImage(), FrameImage(), FxImageChannel(), GaussianBlurImageChannel(), MedianFilterImage(), MontageImageList(), MotionBlurImageChannel(), OilPaintImage(), OptimizeLayerFrames(), PreviewImage(), RadialBlurImageChannel(), ReduceNoiseImage(), ResizeImage(), RotateImage(), SampleImage(), ScaleImage(), SelectiveBlurImageChannel(), SharpenImageChannel(), ShaveImage(), ShearImage(), SimilarityImage(), StereoAnaglyphImage(), and WaveImage().
| #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); \
}
Definition at line 58 of file exception-private.h.
Referenced by ReadInlineImage().
| #define ThrowWriterException | ( | severity, | |||
| tag | ) |
{ \
(void) ThrowMagickException(&image->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); \
}
Definition at line 69 of file exception-private.h.
1.6.1