MagickCore  7.0.0
exception-private.h File Reference
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); \
}

Definition at line 36 of file exception-private.h.

Referenced by AcquireDistributeCacheInfo(), AcquireDrawInfo(), AcquireExceptionInfo(), AcquireFxInfo(), AcquireImage(), AcquireImageInfo(), AcquirePixelCacheNexus(), AcquirePixelChannelMap(), AcquireQuantizeInfo(), AcquireQuantumInfo(), AcquireRandomInfo(), AcquireResampleFilter(), AcquireResizeFilter(), AcquireSignatureInfo(), AcquireStreamInfo(), AcquireString(), AcquireStringInfo(), AcquireTimerInfo(), AcquireTokenInfo(), AcquireVirtualCacheView(), AllocateSemaphoreInfo(), Ascii85Initialize(), BalanceSplayTree(), CloneBlobInfo(), CloneCacheView(), CloneDrawInfo(), CloneExceptionInfo(), CloneImageView(), CloneMontageInfo(), ClonePixelCacheRepository(), ClonePixelInfo(), CloneQuantizeInfo(), CloneString(), ConcatenateString(), ConcatenateStringInfo(), ConstantString(), DistributePixelCacheClient(), DistributePixelCacheServer(), DrawImage(), EscapeString(), ExpandFilenames(), GetCommandOptions(), GetImageDepth(), GetImageDistortion(), GetImageDistortions(), GetImageFeatures(), GetImageStatistics(), 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(), SetImageDepth(), 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); \
}

Definition at line 70 of file exception-private.h.

Referenced by ReadInlineImage().

#define ThrowWriterException (   severity,
  tag 
)
Value:
{ \
(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 81 of file exception-private.h.