Defines

exception-private.h File Reference

#include "wizard/log.h"
#include "wizard/string_.h"

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 Documentation

#define CatchWizardException (   severity,
  tag,
  context 
)
Value:
{ \
  ExceptionInfo \
    *exception; \
 \
  exception=AcquireExceptionInfo(); \
  (void) ThrowWizardException(exception,GetWizardModule(),severity,tag,context); \
  CatchException(exception); \
  exception=DestroyExceptionInfo(exception); \
}
#define ThrowFatalException (   severity,
  tag 
)
#define ThrowFileException (   exception,
  severity,
  context 
)
Value:
{ \
  char \
     *message; \
 \
  message=GetExceptionMessage(errno); \
  (void) ThrowWizardException(exception,GetWizardModule(),severity, \
    "file exception `%s': %s",context,message); \
  message=DestroyString(message); \
}

Referenced by LoadConfigureLists(), LoadLogLists(), and PrintKeyringProperties().

#define ThrowWizardFatalError (   domain,
  error 
)
#define WizardAssert (   domain,
  predicate 
)
Value:
{ \
  if ((WizardBooleanType) (predicate) == WizardFalse) \
    ThrowWizardFatalError(domain,AssertError); \
}

Referenced by AcquireUniqueFileResource(), AddPathToXMLTree(), AuthenticateKey(), AuthenticateSecretKey(), CloneSplayTree(), CloneString(), CloneStringInfo(), CompareStringInfo(), ConcatenateStringInfo(), ConfigureFileToStringInfo(), DecipherCBCMode(), DecipherCFBMode(), DecipherCipher(), DecipherCTRMode(), DecipherECBMode(), DecipherOFBMode(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DestroyAESInfo(), DestroyAuthenticateInfo(), DestroyBZIPInfo(), DestroyCipherInfo(), DestroyEntropyInfo(), DestroyKeyInfo(), DestroyKeyringInfo(), DestroyLZMAInfo(), DestroyRandomInfo(), DestroySecretInfo(), DestroySerpentInfo(), DestroyStringInfo(), DestroyTimerInfo(), DestroyTwofishInfo(), DestroyXMLTree(), DestroyZIPInfo(), EncipherCBCMode(), EncipherCFBMode(), EncipherCipher(), EncipherCTRMode(), EncipherECBMode(), EncipherOFBMode(), ExportKeyringKey(), FileToString(), FileToStringInfo(), GenerateAuthenticateKey(), GenerateCipherNonce(), GenerateSecretKey(), GenerateSessionKey(), GetAESBlocksize(), GetAuthenticateId(), GetAuthenticateKey(), GetAuthenticateKeyLength(), GetAuthenticatePassphrase(), GetBZIPChaos(), GetCipherBlocksize(), GetCipherNonce(), GetCRC64Blocksize(), GetCRC64CyclicRedundancyCheck(), GetCRC64Digest(), GetCRC64Digestsize(), GetEntropyChaos(), GetEntropyFromReservoir(), GetHashBlocksize(), GetHashDigest(), GetHashDigestsize(), GetHashHexDigest(), GetHMACDigest(), GetHMACDigestsize(), GetKeyInfo(), GetKeyringKey(), GetKeyringNonce(), GetLZMAChaos(), GetMD5Blocksize(), GetMD5Digest(), GetMD5Digestsize(), GetNextKeyInSplayTree(), GetNextValueInSplayTree(), GetNextXMLTreeTag(), GetNumberOfNodesInSplayTree(), GetRandomKey(), GetSecretId(), GetSecretKey(), GetSecretKeyLength(), GetSecretPassphrase(), GetSerpentBlocksize(), GetSHA1Blocksize(), GetSHA1Digest(), GetSHA1Digestsize(), GetSHA224Blocksize(), GetSHA224Digest(), GetSHA224Digestsize(), GetSHA256Blocksize(), GetSHA256Digest(), GetSHA256Digestsize(), GetSHA384Blocksize(), GetSHA384Digest(), GetSHA384Digestsize(), GetSHA512Blocksize(), GetSHA512Digest(), GetSHA512Digestsize(), GetStringInfoCRC(), GetStringInfoDatum(), GetStringInfoLength(), GetStringInfoPath(), GetTwofishBlocksize(), GetValueFromSplayTree(), GetXMLTreeAttribute(), GetXMLTreeAttributes(), GetXMLTreeChild(), GetXMLTreeContent(), GetXMLTreeOrdered(), GetXMLTreePath(), GetXMLTreeProcessingInstructions(), GetXMLTreeSibling(), GetXMLTreeTag(), GetZIPChaos(), HexStringToStringInfo(), ImportKeyringKey(), IncreaseBZIP(), IncreaseEntropy(), IncreaseLZMA(), IncreaseZIP(), PrintKeyringProperties(), PrintStringInfo(), PruneTagFromXMLTree(), RelinquishUniqueFileResource(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), ResetCipherNonce(), ResetSplayTree(), ResetSplayTreeIterator(), ResetStringInfo(), RestoreBZIP(), RestoreEntropy(), RestoreLZMA(), RestoreZIP(), SaveEntropyToReservoir(), SetAESKey(), SetAuthenticateId(), SetAuthenticateKeyLength(), SetAuthenticatePassphrase(), SetCipherKey(), SetCipherNonce(), SetKeyInfo(), SetKeyringId(), SetKeyringKey(), SetKeyringNonce(), SetKeyringPath(), SetRandomKey(), SetSecretKeyLength(), SetSerpentKey(), SetStringInfo(), SetStringInfoDatum(), SetStringInfoLength(), SetStringInfoPath(), SetTwofishKey(), SetXMLTreeAttribute(), SetXMLTreeContent(), SplitStringInfo(), StringToStringInfo(), and XMLTreeInfoToXML().