exception-private.h File Reference

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

Go to the source code of this file.

Defines

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

Define Documentation

#define ThrowBinaryException ( severity,
tag,
context   ) 
#define ThrowFatalException ( severity,
tag   ) 
Value:
{ \
  ExceptionInfo \
    exception; \
 \
  GetExceptionInfo(&exception); \
  (void) ThrowMagickException(&exception,GetMagickModule(),severity, \
    tag == (const char *) NULL ? "unknown" : tag,"`%s'", \
    GetExceptionMessage(errno)); \
  CatchException(&exception); \
  (void) DestroyExceptionInfo(&exception); \
  _exit(1); \
}

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

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

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

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

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

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

Generated by  doxygen 1.6.2-20100208