MagickCore  6.7.5
exception-private.h File Reference
#include "MagickCore/log.h"
#include "MagickCore/string_.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 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); \
  _exit(1); \
}

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

Referenced by GetImageDepth(), SetImageDepth(), CloneBlobInfo(), AcquireCacheView(), CloneCacheView(), AcquirePixelCache(), AcquirePixelCacheNexus(), GetImagePixelCache(), LoadCoderList(), LoadColorList(), GetImageDistortion(), GetImageDistortions(), Ascii85Initialize(), LoadConfigureList(), LoadDelegateList(), AcquireDrawInfo(), CloneDrawInfo(), DrawImage(), TraceBezier(), AcquireExceptionInfo(), CloneExceptionInfo(), ThrowException(), GetImageFeatures(), AcquireFxInfo(), NewHashmap(), NewLinkedList(), CloneImageView(), GetImageViewException(), NewImageView(), NewImageViewRegion(), AcquireImage(), AcquireImageInfo(), LoadLocaleList(), LoadLogList(), LoadMagicList(), InitializeMagickList(), RegisterMagickInfo(), SetMagickInfo(), ResizeMagickMemory(), LoadMimeList(), CloneMontageInfo(), GetCommandOptions(), AcquirePixelChannelMap(), ClonePixelInfo(), LoadPolicyList(), AcquireQuantizeInfo(), CloneQuantizeInfo(), AcquireQuantumInfo(), AcquireRandomInfo(), IncrementRandomNonce(), SetImageRegistry(), AcquireResampleFilter(), AcquireResizeFilter(), OptimalTau(), ScaleSpace(), LockMagickMutex(), UnlockMagickMutex(), AllocateSemaphoreInfo(), DestroySemaphoreInfo(), LockSemaphoreInfo(), UnlockSemaphoreInfo(), AcquireSignatureInfo(), BalanceSplayTree(), IterateOverSplayTree(), NewSplayTree(), SplaySplayTree(), GetImageStatistics(), AcquireStreamInfo(), AcquireString(), AcquireStringInfo(), CloneString(), ConcatenateString(), ConcatenateStringInfo(), ConstantString(), EscapeString(), SetStringInfoLength(), StringToArgv(), StringInfoToHexString(), StringToList(), SubstituteString(), GetThresholdMapFile(), AcquireTimerInfo(), AcquireTokenInfo(), LoadTypeList(), ExpandFilenames(), GetPathComponents(), ListFiles(), ParseEntities(), ParseProcessingInstructions(), ParseInternalDoctype(), and SetXMLTreeAttribute().

#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 68 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 79 of file exception-private.h.