GcryptException

Reusable exception class

Members

Functions

throwIfGcryptError
void throwIfGcryptError(gcry_error_t error, istring file, int line)

Throw if variable error indicates an error. The exception message is set to contain the error from libgcrypt.

throwIfLenMismatch
void throwIfLenMismatch(cstring id, size_t len, size_t expected, istring file, int line)

Throw if len != expected, with exception message explaining the issue.

Mixins

__anonymous
mixin ReusableExceptionImplementation!()

Mixin the reusable exception parts

Static functions

throwNewIfGcryptError
void throwNewIfGcryptError(gcry_error_t error, istring file, int line)

Throws a new instance of this class if error indicates an error. The exception message is set to contain the error from libgcrypt.

Meta