MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
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)
 

Functions

MagickPrivate void InitializeExceptionInfo (ExceptionInfo *)
 

Macro Definition Documentation

◆ ThrowBinaryException

#define ThrowBinaryException (   severity,
  tag,
  context 
)

◆ ThrowFatalException

#define ThrowFatalException (   severity,
  tag 
)
Value:
{ \
char \
*fatal_message; \
\
ExceptionInfo \
*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); \
MagickCoreTerminus(); \
_exit((int) (severity-FatalErrorException)+1); \
}
MagickExport ExceptionInfo * AcquireExceptionInfo(void)
Definition: exception.c:108
MagickExport char * GetExceptionMessage(const int error)
Definition: exception.c:471
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:1058
#define GetMagickModule()
Definition: log.h:28
MagickExport char * DestroyString(char *string)
Definition: string.c:810
MagickExport ExceptionInfo * DestroyExceptionInfo(ExceptionInfo *exception)
Definition: exception.c:417

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

Referenced by AcquireCriticalMemory(), AcquireFxInfo(), AcquirePixelCacheNexus(), AcquirePixelChannelMap(), AcquireRandomInfo(), AcquireRandomInfoThreadSet(), AcquireResampleFilterThreadSet(), AcquireSemaphoreInfo(), AcquireSignatureInfo(), AcquireStreamInfo(), AcquireString(), AcquireStringInfo(), AcquireVirtualCacheView(), AcquireVirtualMemory(), Ascii85Initialize(), BalanceSplayTree(), BlobToStringInfo(), CloneCacheView(), CloneDrawInfo(), ClonePixelCacheOnDisk(), ClonePixelCacheRepository(), ClonePixelInfo(), CloneString(), ConcatenateString(), ConcatenateStringInfo(), ConstantString(), DistributePixelCacheClient(), DistributePixelCacheServer(), DrawImage(), EscapeParenthesis(), EscapeString(), ExpandFilenames(), GetCommandOptions(), GetImageDepth(), GetImageDistortion(), GetImageDistortions(), GetImageFeatures(), GetImageViewException(), GetLocationStatistics(), GetPathComponents(), GetThresholdMapFile(), IncrementRandomNonce(), IterateOverSplayTree(), ListFiles(), LockMagickMutex(), MorphologyPrimitive(), ParseEntities(), ParseInternalDoctype(), ParseProcessingInstructions(), ResizeMagickMemory(), ScaleSpace(), SetImageDepth(), SetStringInfoLength(), SetXMLTreeAttribute(), SplaySplayTree(), StringInfoToHexString(), StringToArgv(), StringToList(), SubstituteString(), ThrowException(), TraceBezier(), UnlockMagickMutex(), and ValidatePixelCacheMorphology().

◆ ThrowFileException

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

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

Referenced by BlobToFile(), ClipImagePath(), CustomStreamToImage(), FileToBlob(), FileToImage(), ImagesToBlob(), ImagesToCustomStream(), ImageToBlob(), ImageToCustomStream(), ImageToFile(), InjectImageBlob(), InvokeDelegate(), OpenBlob(), OpenPixelCache(), ReadImage(), ReadPixelCacheMetacontent(), ReadPixelCachePixels(), RenderPostscript(), WritePixelCacheMetacontent(), and WritePixelCachePixels().

◆ ThrowImageException

#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:151
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:1058
#define GetMagickModule()
Definition: log.h:28

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

Referenced by AdaptiveBlurImage(), AdaptiveSharpenImage(), BlurImage(), CannyEdgeImage(), ChopImage(), CloneImage(), CompareImagesLayers(), ConnectedComponentsImage(), ConstituteImage(), DeskewImage(), DespeckleImage(), EdgeImage(), EmbossImage(), FrameImage(), GaussianBlurImage(), HoughLineImage(), InterpolativeResizeImage(), LocalContrastImage(), MontageImageList(), MotionBlurImage(), OilPaintImage(), OptimizeLayerFrames(), PreviewImage(), ResizeImage(), RotationalBlurImage(), SampleImage(), ScaleImage(), SelectiveBlurImage(), SharpenImage(), ShaveImage(), ShearImage(), ShearRotateImage(), StatisticImage(), StereoAnaglyphImage(), WaveImage(), and WaveletDenoiseImage().

◆ ThrowReaderException

#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:151
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:1058
MagickExport Image * DestroyImageList(Image *images)
Definition: list.c:442
#define GetMagickModule()
Definition: log.h:28

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

Referenced by ReadInlineImage().

◆ ThrowWriterException

#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: image.h:151
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:1058
#define GetMagickModule()
Definition: log.h:28

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

Function Documentation

◆ InitializeExceptionInfo()