46 const std::string& message,
const std::exception& cause)
48 , mCause(cause.
what() != nullptr ? cause.
what() :
"")
57 what() const noexcept
override
59 return mMessage.c_str();
Indicates that an error occurred when processing a command.
SymmetricCryptoException(const std::string &message, const std::exception &cause)
Encapsulates a lower level exception.
SymmetricCryptoException(const std::string &message)
const char * what() const noexcept override
Returns the detail message, so that what() reports it instead of the default "Unknown exception" of s...
const std::string & getCause() const noexcept
Returns the message of the underlying cause, empty if none.