#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'", \
GetExceptionMessage(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(), AcquireTokenInfo(), AllocateSemaphoreInfo(), AllocateString(), Ascii85Initialize(), BalanceSplayTree(), CloneBlobInfo(), CloneCacheView(), CloneDrawInfo(), CloneMagickPixelPacket(), CloneMontageInfo(), CloneQuantizeInfo(), CloneString(), ConcatenateString(), ConcatenateStringInfo(), ConstantString(), DestroySemaphoreInfo(), DrawImage(), EscapeString(), ExpandFilenames(), GetImageAttribute(), GetImageChannelDepth(), GetImageChannelDistortion(), GetImageChannelDistortions(), GetImageChannelFeatures(), GetImageChannelStatistics(), GetImagePixelCache(), GetMagickOptions(), GetPathComponents(), GetThresholdMapFile(), IncrementRandomNonce(), InitializeMagickList(), IterateOverSplayTree(), ListFiles(), LoadCoderList(), LoadColorList(), LoadConfigureList(), LoadDelegateList(), LoadLocaleList(), LoadLogList(), LoadMagicList(), LoadMimeList(), LoadPolicyList(), LoadTypeList(), LockMagickMutex(), LockSemaphoreInfo(), NewHashmap(), NewLinkedList(), NewSplayTree(), OptimalTau(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), RegisterMagickInfo(), ResizeMagickMemory(), ScaleSpace(), SetImageRegistry(), SetMagickInfo(), SetStringInfoLength(), SetXMLTreeAttribute(), SplaySplayTree(), StringInfoToHexString(), StringToArgv(), StringToList(), SubstituteString(), ThrowException(), TraceBezier(), UnlockMagickMutex(), and UnlockSemaphoreInfo().
| #define ThrowFileException | ( | exception, | |||
| severity, | |||||
| tag, | |||||
| context | ) |
{ \
(void) ThrowMagickException(exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s': %s",context, \
GetExceptionMessage(errno)); \
}
Definition at line 47 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(), 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 53 of file exception-private.h.
Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), BlurImageChannel(), ChopImage(), CloneImage(), CombineImages(), CompareImageChannels(), CompareImageLayers(), ConstituteImage(), ConvolveImageChannel(), DeskewImage(), DespeckleImage(), EdgeImage(), EmbossImage(), FilterImageChannel(), 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 59 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 70 of file exception-private.h.
1.6.2-20100208