Throw if variable error indicates an error. The exception message is set to contain the error from libgcrypt.
Throw if len != expected, with exception message explaining the issue.
Mixin the reusable exception parts
Throws a new instance of this class if error indicates an error. The exception message is set to contain the error from libgcrypt.
Fields used instead of msg for mutable messages. Exception.msg has string type thus can't be overwritten with new data
Constructs exception object with mutable buffer pre-allocated to length size and other fields kept invalid.
Sets exception information for this instance.
Throws this instance if ok is false, 0 or null.
Appends new substring to mutable exception message
Appends an integer to mutable exception message
Appends formatted string
Reusable exception class