MagickCore  6.9.12-19
Convert, Edit, Or Compose Bitmap Images
exception-private.h File Reference
#include "magick/log.h"
#include "magick/magick.h"
#include "magick/string_.h"
Include dependency graph for exception-private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ThrowBinaryException(severity, tag, context)
 
#define ThrowBinaryImageException(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 MagickBooleanType ClearExceptionInfo (ExceptionInfo *, MagickBooleanType)
 
MagickPrivate MagickBooleanType ExceptionComponentGenesis (void)
 
MagickPrivate void ExceptionComponentTerminus (void)
 
MagickPrivate void InitializeExceptionInfo (ExceptionInfo *)
 

Macro Definition Documentation

#define ThrowBinaryException (   severity,
  tag,
  context 
)
Value:
{ \
(void) ThrowMagickException(exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s'",context); \
return(MagickFalse); \
}
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: exception.c:1149
#define GetMagickModule()
Definition: log.h:29
Definition: magick-type.h:200

Referenced by AutoThresholdImage(), ClutImageChannel(), ColorDecisionListImage(), ContrastStretchImageChannel(), CopyImagePixels(), DecipherImage(), EncipherImage(), EqualizeImageChannel(), FloodfillPaintImage(), GammaImageChannel(), GetImageChannelDistortion(), HuffmanDecodeImage(), ImportImagePixels(), InjectImageBlob(), IsImagesEqual(), LinearStretchImage(), OpenPixelCache(), PasskeyDecipherImage(), PasskeyEncipherImage(), RaiseImage(), RandomChannelThresholdImage(), RandomThresholdImageChannel(), RGBTransformImage(), SetGrayscaleImage(), SigmoidalContrastImageChannel(), SignatureImage(), SortColormapByIntensity(), SyncAuthenticPixelCacheNexus(), and TransformRGBImage().

#define ThrowBinaryImageException (   severity,
  tag,
  context 
)
Value:
{ \
if (image != (Image *) NULL) \
(void) ThrowMagickException(&image->exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s'",context); \
return(MagickFalse); \
}
Definition: image.h:152
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: exception.c:1149
#define GetMagickModule()
Definition: log.h:29
Definition: magick-type.h:200

Referenced by AcquireImageColormap(), AssignImageColors(), ColorFloodfillImage(), GradientImage(), HuffmanEncodeImage(), LZWEncodeImage(), MatteFloodfillImage(), PackbitsEncodeImage(), ProfileImage(), QuantizeImage(), RemapImage(), RemapImages(), RenderMVGContent(), SegmentImage(), SetImageClipMask(), SetImageExtent(), SetImageMask(), ThresholdImage(), and ThresholdImageChannel().

#define ThrowFatalException (   severity,
  tag 
)
Value:
{ \
char \
*fatal_message; \
\
*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); \
_exit((int) (severity-FatalErrorException)+1); \
}
Definition: exception.h:77
MagickExport void MagickCoreTerminus(void)
Definition: magick.c:1369
MagickExport ExceptionInfo * AcquireExceptionInfo(void)
Definition: exception.c:113
MagickExport char * GetExceptionMessage(const int error)
Definition: exception.c:530
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: exception.c:1149
MagickExport void CatchException(ExceptionInfo *exception)
Definition: exception.c:203
#define GetMagickModule()
Definition: log.h:29
MagickExport char * DestroyString(char *string)
Definition: string.c:821
struct _ExceptionInfo ExceptionInfo
Definition: magick-type.h:229
MagickExport ExceptionInfo * DestroyExceptionInfo(ExceptionInfo *exception)
Definition: exception.c:448

Referenced by AcquireCoderCache(), AcquireColorCache(), AcquireConfigureCache(), AcquireCriticalMemory(), AcquireDelegateCache(), AcquireDistributeCacheInfo(), AcquireExceptionInfo(), AcquireFxInfo(), AcquireImageInfo(), AcquireLocaleSplayTree(), AcquireMagicCache(), AcquireMimeCache(), AcquirePixelCache(), AcquirePixelCacheNexus(), AcquirePolicyCache(), AcquirePolicyString(), AcquireQuantizeInfo(), AcquireQuantumInfo(), AcquireRandomInfo(), AcquireRandomInfoThreadSet(), AcquireResampleFilter(), AcquireResampleFilterThreadSet(), AcquireResizeFilter(), AcquireSignatureInfo(), AcquireStreamInfo(), AcquireString(), AcquireStringInfo(), AcquireStringInfoContainer(), AcquireTimerInfo(), AcquireTokenInfo(), AcquireTypeCache(), AcquireVirtualCacheView(), AcquireVirtualMemory(), AllocateSemaphoreInfo(), AllocateString(), Ascii85Initialize(), BalanceSplayTree(), BlobToStringInfo(), CloneCacheView(), CloneDrawInfo(), CloneExceptionInfo(), CloneImageView(), CloneMagickPixelPacket(), CloneMontageInfo(), ClonePixelCacheOnDisk(), CloneQuantizeInfo(), CloneString(), ConcatenateString(), ConcatenateStringInfo(), ConstantString(), DistributePixelCacheClient(), DistributePixelCacheServer(), EscapeParenthesis(), EscapeString(), ExpandFilenames(), GetCommandOptions(), GetImageAttribute(), GetImageChannelDepth(), GetImageChannelDistortion(), GetImageChannelDistortions(), GetImageChannelFeatures(), GetImagePixelCache(), GetImageViewException(), GetLocationStatistics(), GetPathComponents(), GetThresholdMapFile(), IncrementRandomNonce(), IsMagickTreeInstantiated(), IterateOverSplayTree(), ListFiles(), LoadCoderCache(), LoadColorCache(), LoadConfigureCache(), LoadDelegateCache(), LoadLocaleCache(), LoadLogCache(), LoadMagicCache(), LoadMimeCache(), LoadPolicyCache(), LoadTypeCache(), LockMagickMutex(), MorphologyPrimitive(), NewHashmap(), NewImageView(), NewImageViewRegion(), NewLinkedList(), NewSplayTree(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), RegisterMagickInfo(), RenderMVGContent(), ResizeMagickMemory(), ScaleSpace(), SetImageChannelDepth(), SetMagickInfo(), SetStringInfoLength(), SetXMLTreeAttribute(), SplaySplayTree(), StringInfoToHexString(), StringToArgv(), StringToStrings(), SubstituteString(), ThrowException(), and UnlockMagickMutex().

#define ThrowFileException (   exception,
  severity,
  tag,
  context 
)
Value:
{ \
char \
*message; \
\
message=GetExceptionMessage(errno); \
(void) ThrowMagickException(exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s': %s",context,message); \
message=DestroyString(message); \
}
MagickExport char * GetExceptionMessage(const int error)
Definition: exception.c:530
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: exception.c:1149
#define GetMagickModule()
Definition: log.h:29
MagickExport char * DestroyString(char *string)
Definition: string.c:821

Referenced by BlobToFile(), ClipImagePath(), FileToBlob(), FileToImage(), ImagesToBlob(), ImageToBlob(), ImageToFile(), InjectImageBlob(), InvokeDelegate(), OpenBlob(), OpenPixelCache(), ReadImage(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), RenderPostscript(), WritePixelCacheIndexes(), and WritePixelCachePixels().

#define ThrowImageException (   severity,
  tag 
)
Value:
{ \
(void) ThrowMagickException(exception,GetMagickModule(),severity, \
tag == (const char *) NULL ? "unknown" : tag,"`%s'",image->filename); \
return((Image *) NULL); \
}
Definition: image.h:152
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: exception.c:1149
#define GetMagickModule()
Definition: log.h:29

Referenced by AdaptiveBlurImageChannel(), AdaptiveSharpenImageChannel(), BlurImageChannel(), CannyEdgeImage(), ChopImage(), CloneImage(), CombineImages(), CompareImageChannels(), CompareImageLayers(), ConnectedComponentsImage(), ConvolveImageChannel(), DeskewImage(), DespeckleImage(), EdgeImage(), EmbossImage(), FilterImageChannel(), FrameImage(), GaussianBlurImageChannel(), HoughLineImage(), LocalContrastImage(), MontageImageList(), MotionBlurImageChannel(), OilPaintImage(), OptimizeLayerFrames(), PreviewImage(), ResizeImage(), RotationalBlurImageChannel(), SampleImage(), ScaleImage(), SelectiveBlurImageChannel(), SharpenImageChannel(), ShaveImage(), ShearImage(), ShearRotateImage(), SimilarityMetricImage(), StatisticImageChannel(), StereoAnaglyphImage(), WaveImage(), and WaveletDenoiseImage().

#define ThrowReaderException (   severity,
  tag 
)
Value:
{ \
(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: image.h:152
MagickExport MagickBooleanType CloseBlob(Image *)
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: exception.c:1149
MagickExport Image * DestroyImageList(Image *images)
Definition: list.c:477
#define GetMagickModule()
Definition: log.h:29

Referenced by ReadImage(), and ReadInlineImage().

#define ThrowWriterException (   severity,
  tag 
)
Value:
{ \
(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: image.h:152
MagickExport MagickBooleanType CloseBlob(Image *)
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: exception.c:1149
#define GetMagickModule()
Definition: log.h:29
Definition: magick-type.h:200

Referenced by WriteImage().

Function Documentation

MagickPrivate MagickBooleanType ExceptionComponentGenesis ( void  )
MagickPrivate void ExceptionComponentTerminus ( void  )

Referenced by MagickCoreTerminus().