MagickCore 7.0.10
|
#include "wizard/semaphore.h"
Go to the source code of this file.
Typedefs | |
typedef struct _ExceptionInfo | ExceptionInfo |
typedef void(* | ErrorHandler) (const ExceptionType, const char *, const char *) |
typedef void(* | FatalErrorHandler) (const ExceptionType, const char *, const char *) |
typedef void(* | WarningHandler) (const ExceptionType, const char *, const char *) |
typedef void(* ErrorHandler) (const ExceptionType, const char *, const char *) |
Definition at line 127 of file exception.h.
typedef struct _ExceptionInfo ExceptionInfo |
Definition at line 125 of file exception.h.
typedef void(* FatalErrorHandler) (const ExceptionType, const char *, const char *) |
Definition at line 130 of file exception.h.
typedef void(* WarningHandler) (const ExceptionType, const char *, const char *) |
Definition at line 133 of file exception.h.
enum DomainType |
Definition at line 27 of file exception.h.
enum ErrorType |
Enumerator | |
---|---|
MemoryError | |
EnumerateError | |
AuthenticateUserError | |
KeyError | |
HashIOError | |
TimeError | |
TamperError | |
AssertError |
Definition at line 47 of file exception.h.
enum ExceptionType |
Definition at line 59 of file exception.h.
WizardExport ExceptionInfo * AcquireExceptionInfo | ( | void | ) |
WizardExport WizardBooleanType WizardExport void CatchException | ( | ExceptionInfo * | ) |
WizardExport WizardBooleanType WizardExport void ClearWizardException | ( | ExceptionInfo * | ) |
WizardExport ExceptionInfo * DestroyExceptionInfo | ( | ExceptionInfo * | exception | ) |
Definition at line 399 of file exception.c.
References DestroyExceptionElement(), DestroyLinkedList(), _ExceptionInfo::exceptions, LockSemaphoreInfo(), _ExceptionInfo::relinquish, RelinquishSemaphoreInfo(), RelinquishWizardMemory(), _ExceptionInfo::semaphore, _ExceptionInfo::severity, _ExceptionInfo::signature, UndefinedException, UnlockSemaphoreInfo(), WizardFalse, and WizardSignature.
Referenced by AcquireRandomInfo(), CloseWizardLog(), GenerateSecretKey(), GetLocaleMessage(), IsEventLogging(), LogComponentGenesis(), LogWizardEventList(), SetLogEventMask(), SetLogFormat(), TranslateEvent(), and WizardToMime().
WizardExport WizardBooleanType WizardExport void DestroyLocaleInfo | ( | void | ) |
WizardExport WizardBooleanType WizardExport void GetExceptionInfo | ( | ExceptionInfo * | ) |
WizardExport char * GetExceptionMessage | ( | const int | error | ) |
Definition at line 471 of file exception.c.
References ConstantString(), CopyWizardString(), and WizardPathExtent.
WizardExport ExceptionType GetExceptionSeverity | ( | const ExceptionInfo * | exception | ) |
Definition at line 627 of file exception.c.
References _ExceptionInfo::severity, _ExceptionInfo::signature, and WizardSignature.
WizardExport const char * GetLocaleExceptionMessage | ( | const ExceptionType | , |
const char * | |||
) |
WizardExport const char * GetLocaleMessage | ( | const char * | tag | ) |
Definition at line 739 of file locale.c.
References AcquireExceptionInfo(), DestroyExceptionInfo(), FormatLocaleString(), GetLocaleInfo_(), _LocaleInfo::message, and WizardLocaleExtent.
Referenced by GetLocaleExceptionMessage().
WizardExport WizardBooleanType WizardExport void InheritException | ( | ExceptionInfo * | , |
const ExceptionInfo * | |||
) |
WizardExport WizardBooleanType ListLocaleInfo | ( | FILE * | , |
ExceptionInfo * | |||
) |
WizardExport ErrorHandler SetErrorHandler | ( | ErrorHandler | handler | ) |
Definition at line 813 of file exception.c.
References error_handler.
WizardExport FatalErrorHandler SetFatalErrorHandler | ( | FatalErrorHandler | handler | ) |
Definition at line 846 of file exception.c.
References fatal_error_handler.
Referenced by LoadLocaleCache().
WizardExport WarningHandler SetWarningHandler | ( | WarningHandler | handler | ) |
Definition at line 879 of file exception.c.
References warning_handler.
WizardExport WizardBooleanType ThrowException | ( | ExceptionInfo * | , |
const ExceptionType | , | ||
const char * | , | ||
const char * | |||
) |
WizardExport WizardBooleanType ThrowWizardException | ( | ExceptionInfo * | , |
const char * | , | ||
const char * | , | ||
const size_t | , | ||
const ExceptionType | , | ||
const char * | , | ||
... | |||
) |
WizardExport WizardBooleanType WizardExport void WizardError | ( | const ExceptionType | , |
const char * | , | ||
const char * | |||
) |
WizardExport WizardBooleanType WizardExport void WizardFatalError | ( | const ExceptionType | , |
const char * | , | ||
const char * | |||
) |
WizardExport WizardBooleanType WizardExport void WizardWarning | ( | const ExceptionType | warning, |
const char * | reason, | ||
const char * | description | ||
) |
Definition at line 783 of file exception.c.
References warning_handler.
Referenced by CatchException().