|
MagickCore
6.7.5
|

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(exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s'",context); \
return(MagickFalse); \
}
Definition at line 28 of file exception-private.h.
Referenced by InjectImageBlob(), OpenPixelCache(), SyncAuthenticPixelCacheNexus(), DecipherImage(), PasskeyDecipherImage(), EncipherImage(), PasskeyEncipherImage(), AcquireImageColormap(), SortColormapByIntensity(), RGBTransformImage(), TransformRGBImage(), GetImageDistortion(), IsImagesEqual(), HuffmanDecodeImage(), HuffmanEncodeImage(), PackbitsEncodeImage(), WriteImage(), RaiseImage(), DrawImage(), ClutImage(), ColorDecisionListImage(), ContrastStretchImage(), EqualizeImage(), GammaImage(), LinearStretchImage(), SigmoidalContrastImage(), SetImageMask(), FloodfillPaintImage(), GradientImage(), ImportImagePixels(), ProfileImage(), AssignImageColors(), DirectToColormapImage(), QuantizeImage(), RemapImage(), RemapImages(), SetGrayscaleImage(), Classify(), and SegmentImage().
| #define ThrowFatalException | ( | severity, | |
| tag | |||
| ) |
{ \
char \
*message; \
\
ExceptionInfo \
exception; \
\
GetExceptionInfo(&exception); \
message=GetExceptionMessage(errno); \
(void) ThrowMagickException(&exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s'",message); \
message=DestroyString(message); \
CatchException(&exception); \
(void) DestroyExceptionInfo(&exception); \
_exit(1); \
}
Definition at line 35 of file exception-private.h.
Referenced by GetImageDepth(), SetImageDepth(), CloneBlobInfo(), AcquireCacheView(), CloneCacheView(), AcquirePixelCache(), AcquirePixelCacheNexus(), GetImagePixelCache(), LoadCoderList(), LoadColorList(), GetImageDistortion(), GetImageDistortions(), Ascii85Initialize(), LoadConfigureList(), LoadDelegateList(), AcquireDrawInfo(), CloneDrawInfo(), DrawImage(), TraceBezier(), AcquireExceptionInfo(), CloneExceptionInfo(), ThrowException(), GetImageFeatures(), AcquireFxInfo(), NewHashmap(), NewLinkedList(), CloneImageView(), GetImageViewException(), NewImageView(), NewImageViewRegion(), AcquireImage(), AcquireImageInfo(), LoadLocaleList(), LoadLogList(), LoadMagicList(), InitializeMagickList(), RegisterMagickInfo(), SetMagickInfo(), ResizeMagickMemory(), LoadMimeList(), CloneMontageInfo(), GetCommandOptions(), AcquirePixelChannelMap(), ClonePixelInfo(), LoadPolicyList(), AcquireQuantizeInfo(), CloneQuantizeInfo(), AcquireQuantumInfo(), AcquireRandomInfo(), IncrementRandomNonce(), SetImageRegistry(), AcquireResampleFilter(), AcquireResizeFilter(), OptimalTau(), ScaleSpace(), LockMagickMutex(), UnlockMagickMutex(), AllocateSemaphoreInfo(), DestroySemaphoreInfo(), LockSemaphoreInfo(), UnlockSemaphoreInfo(), AcquireSignatureInfo(), BalanceSplayTree(), IterateOverSplayTree(), NewSplayTree(), SplaySplayTree(), GetImageStatistics(), AcquireStreamInfo(), AcquireString(), AcquireStringInfo(), CloneString(), ConcatenateString(), ConcatenateStringInfo(), ConstantString(), EscapeString(), SetStringInfoLength(), StringToArgv(), StringInfoToHexString(), StringToList(), SubstituteString(), GetThresholdMapFile(), AcquireTimerInfo(), AcquireTokenInfo(), LoadTypeList(), ExpandFilenames(), GetPathComponents(), ListFiles(), ParseEntities(), ParseProcessingInstructions(), ParseInternalDoctype(), and SetXMLTreeAttribute().
| #define ThrowFileException | ( | exception, | |
| severity, | |||
| tag, | |||
| context | |||
| ) |
{ \
char \
*message; \
\
message=GetExceptionMessage(errno); \
(void) ThrowMagickException(exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s': %s",context,message); \
message=DestroyString(message); \
}
Definition at line 52 of file exception-private.h.
Referenced by RenderPostscript(), BlobToFile(), FileToBlob(), FileToImage(), ImageToBlob(), ImageToFile(), ImagesToBlob(), InjectImageBlob(), OpenBlob(), DiskToDiskPixelCacheClone(), PixelCacheCloneOptimized(), PixelCacheCloneUnoptimized(), OpenPixelCache(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), WritePixelCacheMetacontent(), WritePixelCachePixels(), LoadCoderList(), LoadCoderLists(), LoadColorList(), LoadColorLists(), LoadConfigureList(), LoadConfigureLists(), ReadImage(), WriteImage(), InvokeDelegate(), LoadDelegateList(), ClipImagePath(), LoadLogList(), LoadLogLists(), LoadMagicList(), LoadMagicLists(), LoadMimeList(), LoadPolicyList(), LoadPolicyLists(), and LoadTypeList().
| #define ThrowImageException | ( | severity, | |
| tag | |||
| ) |
{ \
(void) ThrowMagickException(exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s'",image->filename); \
return((Image *) NULL); \
}
Definition at line 62 of file exception-private.h.
Referenced by CompareImages(), SimilarityImage(), ConstituteImage(), FrameImage(), AdaptiveBlurImage(), AdaptiveSharpenImage(), BlurImage(), ConvolveImage(), DespeckleImage(), EdgeImage(), EmbossImage(), GaussianBlurImage(), MotionBlurImage(), PreviewImage(), RadialBlurImage(), SelectiveBlurImage(), SharpenImage(), FxImage(), StereoAnaglyphImage(), WaveImage(), CloneImage(), CompareImagesLayers(), OptimizeLayerFrames(), MontageImageList(), OilPaintImage(), ResizeImage(), SampleImage(), ScaleImage(), DeskewImage(), ShearImage(), ShearRotateImage(), StatisticImage(), AdaptiveThresholdImage(), ChopImage(), and ShaveImage().
| #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 68 of file exception-private.h.
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); \
}
Definition at line 79 of file exception-private.h.