|
libkeepass 0.2.0
KeePass key database importer/exporter library
|
Thrown when a database or stream has an invalid format. More...
#include <exception.hh>
Public Member Functions | |
| FormatError (std::string msg) | |
| FormatError (std::string msg, uint64_t offset) | |
| const char * | what () const noexcept override |
| std::optional< uint64_t > | offset () const noexcept |
| Returns the byte offset of the failure, if known. | |
| ErrorCategory | category () const noexcept override |
| Returns the coarse category of this error. | |
Thrown when a database or stream has an invalid format.
The optional offset can point at the first byte that failed validation, which is useful for diagnostics in large or truncated files.
|
inline |
| msg | Human-readable description (must not contain key material). |
| offset | Byte offset in the input at which the error was detected. |
|
inlineoverridevirtualnoexcept |
Returns the coarse category of this error.
Implements keepass::Error.
Reimplemented in keepass::UnsupportedFeatureError, and keepass::ResourceLimitError.