exception-private.h File Reference

#include "magick/log.h"
#include "magick/magick.h"
#include "magick/string_.h"
Include dependency graph for exception-private.h:

Go to the source code of this file.

Defines

#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 *)

Define Documentation

#define ThrowBinaryException ( severity,
tag,
context   ) 
#define ThrowBinaryImageException ( severity,
tag,
context   ) 
#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); \
}

Referenced by AcquireCoderCache(), AcquireColorCache(), AcquireConfigureCache(), AcquireCriticalMemory(), AcquireDelegateCache(), AcquireDistributeCacheInfo(), AcquireExceptionInfo(), AcquireFxInfo(), AcquireImageInfo(), AcquireLocaleSplayTree(), AcquireMagicCache(), AcquireMimeCache(), AcquirePixelCache(), AcquirePixelCacheNexus(), AcquirePolicyCache(), 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); \
}

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

#define ThrowImageException ( severity,
tag   ) 
#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); \
}

Function Documentation

MagickPrivate MagickBooleanType ClearExceptionInfo ( ExceptionInfo ,
MagickBooleanType   
)
MagickPrivate MagickBooleanType ExceptionComponentGenesis ( void   ) 
MagickPrivate void ExceptionComponentTerminus ( void   ) 

Referenced by MagickCoreTerminus().

MagickPrivate void InitializeExceptionInfo ( ExceptionInfo  ) 

Generated on 24 Feb 2020 for MagickCore by  doxygen 1.6.1