MagickCore 7.1.0
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 ExceptionComponentTerminus (void)
 
MagickPrivate void InitializeExceptionInfo (ExceptionInfo *)
 
MagickPrivate MagickBooleanType ExceptionComponentGenesis (void)
 

Macro Definition Documentation

◆ ThrowBinaryException

#define ThrowBinaryException (   severity,
  tag,
  context 
)
Value:
{ \
(void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
"`%s'",context); \
return(MagickFalse); \
}
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:1145
#define GetMagickModule()
Definition: log.h:28
@ MagickFalse
Definition: magick-type.h:163

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

◆ ThrowFatalException

#define ThrowFatalException (   severity,
  tag 
)
Value:
{ \
char \
*fatal_message; \
\
*fatal_exception; \
\
fatal_exception=AcquireExceptionInfo(); \
fatal_message=GetExceptionMessage(errno); \
(void) ThrowMagickException(fatal_exception,GetMagickModule(),severity,tag, \
"`%s'",fatal_message); \
fatal_message=DestroyString(fatal_message); \
CatchException(fatal_exception); \
(void) DestroyExceptionInfo(fatal_exception); \
MagickCoreTerminus(); \
_exit((int) (severity-FatalErrorException)+1); \
}
MagickExport ExceptionInfo * DestroyExceptionInfo(ExceptionInfo *exception)
Definition: exception.c:418
MagickExport char * GetExceptionMessage(const int error)
Definition: exception.c:525
MagickExport ExceptionInfo * AcquireExceptionInfo(void)
Definition: exception.c:115
@ FatalErrorException
Definition: exception.h:76
MagickExport char * DestroyString(char *string)
Definition: string.c:788

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

◆ ThrowFileException

#define ThrowFileException (   exception,
  severity,
  tag,
  context 
)
Value:
{ \
char \
*file_message; \
\
file_message=GetExceptionMessage(errno); \
(void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
"'%s': %s",context,file_message); \
file_message=DestroyString(file_message); \
}

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

◆ ThrowImageException

#define ThrowImageException (   severity,
  tag 
)
Value:
{ \
(void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
"`%s'",image->filename); \
return((Image *) NULL); \
}
Definition: image.h:152

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

◆ ThrowReaderException

#define ThrowReaderException (   severity,
  tag 
)
Value:
{ \
(void) ThrowMagickException(exception,GetMagickModule(),severity,tag, \
"`%s'",image_info->filename); \
if ((image) != (Image *) NULL) \
{ \
(void) CloseBlob(image); \
image=DestroyImageList(image); \
} \
return((Image *) NULL); \
}
MagickExport MagickBooleanType CloseBlob(Image *)
MagickExport Image * DestroyImageList(Image *images)
Definition: list.c:477

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

◆ ThrowWriterException

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

Function Documentation

◆ ExceptionComponentGenesis()

MagickPrivate MagickBooleanType ExceptionComponentGenesis ( void  )

Definition at line 468 of file exception.c.

References AcquireSemaphoreInfo(), exception_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

◆ ExceptionComponentTerminus()

MagickPrivate void ExceptionComponentTerminus ( void  )

Referenced by MagickCoreTerminus().

◆ InitializeExceptionInfo()