MagickCore  6.8.5
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 ThrowFatalException(severity, tag)
#define ThrowFileException(exception, severity, tag, context)
#define ThrowImageException(severity, tag)
#define ThrowReaderException(severity, tag)
#define ThrowWriterException(severity, tag)

Macro Definition Documentation

#define ThrowFatalException (   severity,
  tag 
)
Value:
{ \
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); \
MagickCoreTerminus(); \
_exit((int) (severity-FatalErrorException)+1); \
}

Referenced by AcquireDistributeCacheInfo(), AcquireDrawInfo(), AcquireExceptionInfo(), AcquireFxInfo(), AcquireImage(), AcquireImageInfo(), AcquirePixelCacheNexus(), AcquireQuantizeInfo(), AcquireQuantumInfo(), AcquireRandomInfo(), AcquireResampleFilter(), AcquireResizeFilter(), AcquireSignatureInfo(), AcquireStreamInfo(), AcquireString(), AcquireStringInfo(), AcquireTimerInfo(), AcquireTokenInfo(), AcquireVirtualCacheView(), AllocateSemaphoreInfo(), AllocateString(), Ascii85Initialize(), BalanceSplayTree(), CloneBlobInfo(), CloneCacheView(), CloneDrawInfo(), CloneImageView(), CloneMagickPixelPacket(), CloneMontageInfo(), ClonePixelCacheRepository(), CloneQuantizeInfo(), CloneString(), ConcatenateString(), ConcatenateStringInfo(), ConstantString(), DistributePixelCacheClient(), DistributePixelCacheServer(), DrawImage(), EscapeString(), ExpandFilenames(), GetCommandOptions(), GetImageAttribute(), GetImageChannelDepth(), GetImageChannelDistortion(), GetImageChannelDistortions(), GetImageChannelFeatures(), GetImageChannelStatistics(), GetImagePixelCache(), GetImageViewException(), GetPathComponents(), GetThresholdMapFile(), IncrementRandomNonce(), InitializeMagickList(), IterateOverSplayTree(), ListFiles(), LoadCoderList(), LoadColorList(), LoadConfigureList(), LoadDelegateList(), LoadLocaleList(), LoadLogList(), LoadMagicList(), LoadMimeList(), LoadPolicyList(), LoadTypeList(), LockMagickMutex(), MorphologyPrimitive(), NewHashmap(), NewImageView(), NewImageViewRegion(), NewLinkedList(), NewSplayTree(), OptimalTau(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), RegisterMagickInfo(), ResizeMagickMemory(), ScaleSpace(), SetImageChannelDepth(), SetImageRegistry(), SetMagickInfo(), SetStringInfoLength(), SetXMLTreeAttribute(), SplaySplayTree(), StringInfoToHexString(), StringToArgv(), StringToArrayOfDoubles(), StringToList(), SubstituteString(), ThrowException(), TraceBezier(), and UnlockMagickMutex().

#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); \
}

Referenced by 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); \
}