|
WizardsToolkit
1.0.7
|


Go to the source code of this file.
Defines | |
| #define | CatchWizardException(severity, tag, context) |
| #define | WizardAssert(domain, predicate) |
| #define | ThrowFileException(exception, severity, context) |
| #define | ThrowWizardFatalError(domain, error) |
| #define | ThrowFatalException(severity, tag) |
| #define CatchWizardException | ( | severity, | |
| tag, | |||
| context | |||
| ) |
{ \
ExceptionInfo \
*exception; \
\
exception=AcquireExceptionInfo(); \
(void) ThrowWizardException(exception,GetWizardModule(),severity,tag,context); \
CatchException(exception); \
exception=DestroyExceptionInfo(exception); \
}
Definition at line 28 of file exception-private.h.
| #define ThrowFatalException | ( | severity, | |
| tag | |||
| ) |
{ \
char \
*message; \
\
message=GetExceptionMessage(errno); \
CatchWizardException(severity,tag,message); \
message=DestroyString(message); \
_exit(127); \
}
Definition at line 75 of file exception-private.h.
Referenced by IncrementCipherNonce(), LoadConfigureList(), AcquireExceptionInfo(), ThrowException(), LoadLogList(), ResizeWizardMemory(), LoadMimeList(), GetWizardOptions(), AcquireRandomInfo(), GenerateEntropicChaos(), IncrementRandomNonce(), LockWizardMutex(), UnlockWizardMutex(), AllocateSemaphoreInfo(), DestroySemaphoreInfo(), LockSemaphoreInfo(), UnlockSemaphoreInfo(), AcquireString(), AcquireStringInfo(), CloneString(), ConcatenateString(), ConstantString(), ConcatenateStringInfo(), SetStringInfoLength(), StringInfoToHexString(), StringToArgv(), SubstituteString(), GetPathComponents(), ParseEntities(), ParseProcessingInstructions(), ParseInternalDoctype(), and SetXMLTreeAttribute().
| #define ThrowFileException | ( | exception, | |
| severity, | |||
| context | |||
| ) |
{ \
char \
*message; \
\
message=GetExceptionMessage(errno); \
(void) ThrowWizardException(exception,GetWizardModule(),severity, \
"file exception `%s': %s",context,message); \
message=DestroyString(message); \
}
Definition at line 52 of file exception-private.h.
Referenced by LoadConfigureLists(), PrintKeyringProperties(), and LoadLogLists().
| #define ThrowWizardFatalError | ( | domain, | |
| error | |||
| ) |
{ \
char \
context[MaxTextExtent], \
tag[MaxTextExtent]; \
\
(void) FormatLocaleString(tag,MaxTextExtent,"%ld\n",(long) domain); \
(void) FormatLocaleString(context,MaxTextExtent,"%ld\n",(long) error); \
CatchWizardException(UndefinedException,tag,context); \
_exit((domain << 3) | error); \
}
Definition at line 63 of file exception-private.h.
Referenced by AcquireAESInfo(), AcquireAuthenticateInfo(), AuthenticateKey(), DestroyAuthenticateInfo(), GenerateAuthenticateKey(), GetAuthenticateId(), GetAuthenticateKey(), GetAuthenticateKeyLength(), GetAuthenticatePassphrase(), SetAuthenticateId(), AcquireBZIPInfo(), bz_internal_error(), AcquireCipherInfo(), DecipherCipher(), DestroyCipherInfo(), EncipherCipher(), GenerateCipherNonce(), SetCipherKey(), AcquireCRC64Info(), AcquireEntropyInfo(), GetEntropyChaos(), IncreaseEntropy(), RestoreEntropy(), AcquireHashInfo(), DestroyHashInfo(), FinalizeHash(), GetHashBlocksize(), GetHashDigestsize(), GetHashHexDigest(), InitializeHash(), UpdateHash(), NewHashmap(), NewLinkedList(), AcquireHMACInfo(), AcquireKeyInfo(), GenerateSessionKey(), GetKeyInfo(), SetKeyInfo(), AcquireKeyringInfo(), AcquireLZMAInfo(), AcquireMD5Info(), AcquireRandomInfo(), AcquireSecretInfo(), AcquireSerpentInfo(), AcquireSHA1Info(), AcquireSHA224Info(), AcquireSHA256Info(), AcquireSHA384Info(), AcquireSHA512Info(), BalanceSplayTree(), IterateOverSplayTree(), NewSplayTree(), SplaySplayTree(), AcquireTimerInfo(), AcquireTwofishInfo(), and AcquireZIPInfo().
| #define WizardAssert | ( | domain, | |
| predicate | |||
| ) |
{ \
if ((WizardBooleanType) (predicate) == WizardFalse) \
ThrowWizardFatalError(domain,AssertError); \
}
Definition at line 45 of file exception-private.h.
Referenced by DestroyAESInfo(), GetAESBlocksize(), SetAESKey(), AuthenticateKey(), DestroyAuthenticateInfo(), GenerateAuthenticateKey(), GetAuthenticateId(), GetAuthenticateKey(), GetAuthenticateKeyLength(), GetAuthenticatePassphrase(), SetAuthenticateId(), SetAuthenticateKeyLength(), SetAuthenticatePassphrase(), DestroyBZIPInfo(), GetBZIPChaos(), IncreaseBZIP(), RestoreBZIP(), DecipherCBCMode(), DecipherCFBMode(), DecipherCipher(), DecipherCTRMode(), DecipherECBMode(), DecipherOFBMode(), DestroyCipherInfo(), EncipherCBCMode(), EncipherCFBMode(), EncipherCipher(), EncipherCTRMode(), EncipherECBMode(), EncipherOFBMode(), GetCipherBlocksize(), GenerateCipherNonce(), GetCipherNonce(), ResetCipherNonce(), SetCipherNonce(), SetCipherKey(), GetCRC64Blocksize(), GetCRC64CyclicRedundancyCheck(), GetCRC64Digest(), GetCRC64Digestsize(), DestroyEntropyInfo(), GetEntropyChaos(), IncreaseEntropy(), RestoreEntropy(), GetHashBlocksize(), GetHashDigest(), GetHashDigestsize(), GetHashHexDigest(), GetHMACDigest(), GetHMACDigestsize(), DestroyKeyInfo(), GenerateSessionKey(), GetKeyInfo(), SetKeyInfo(), DestroyKeyringInfo(), ExportKeyringKey(), GetKeyringKey(), GetKeyringNonce(), ImportKeyringKey(), PrintKeyringProperties(), SetKeyringId(), SetKeyringKey(), SetKeyringNonce(), SetKeyringPath(), GetLZMAChaos(), DestroyLZMAInfo(), IncreaseLZMA(), RestoreLZMA(), GetMD5Blocksize(), GetMD5Digest(), GetMD5Digestsize(), DestroyRandomInfo(), GetEntropyFromReservoir(), GetRandomKey(), SaveEntropyToReservoir(), SetRandomKey(), AcquireUniqueFileResource(), RelinquishUniqueFileResource(), AuthenticateSecretKey(), DestroySecretInfo(), GenerateSecretKey(), GetSecretId(), GetSecretKey(), GetSecretKeyLength(), GetSecretPassphrase(), SetSecretKeyLength(), DestroySerpentInfo(), GetSerpentBlocksize(), SetSerpentKey(), GetSHA1Blocksize(), GetSHA1Digest(), GetSHA1Digestsize(), GetSHA224Blocksize(), GetSHA224Digest(), GetSHA224Digestsize(), GetSHA256Blocksize(), GetSHA256Digest(), GetSHA256Digestsize(), GetSHA384Blocksize(), GetSHA384Digest(), GetSHA384Digestsize(), GetSHA512Blocksize(), GetSHA512Digest(), GetSHA512Digestsize(), CloneSplayTree(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), GetNextKeyInSplayTree(), GetNextValueInSplayTree(), GetValueFromSplayTree(), GetNumberOfNodesInSplayTree(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), ResetSplayTree(), ResetSplayTreeIterator(), CloneString(), CloneStringInfo(), CompareStringInfo(), ConfigureFileToStringInfo(), ConcatenateStringInfo(), DestroyStringInfo(), FileToString(), FileToStringInfo(), GetStringInfoCRC(), GetStringInfoDatum(), GetStringInfoLength(), GetStringInfoPath(), HexStringToStringInfo(), PrintStringInfo(), ResetStringInfo(), SetStringInfo(), SetStringInfoDatum(), SetStringInfoLength(), SetStringInfoPath(), SplitStringInfo(), StringToStringInfo(), DestroyTimerInfo(), DestroyTwofishInfo(), GetTwofishBlocksize(), SetTwofishKey(), AddPathToXMLTree(), DestroyXMLTree(), GetNextXMLTreeTag(), GetXMLTreeAttribute(), GetXMLTreeAttributes(), GetXMLTreeChild(), GetXMLTreeContent(), GetXMLTreeOrdered(), GetXMLTreePath(), GetXMLTreeProcessingInstructions(), GetXMLTreeSibling(), GetXMLTreeTag(), PruneTagFromXMLTree(), SetXMLTreeAttribute(), SetXMLTreeContent(), XMLTreeInfoToXML(), GetZIPChaos(), DestroyZIPInfo(), IncreaseZIP(), and RestoreZIP().