libkeepass 0.2.0
KeePass key database importer/exporter library
Loading...
Searching...
No Matches
keepass::UnsupportedFeatureError Class Referencefinal

Thrown when a database uses a valid but unsupported format feature. More...

#include <exception.hh>

Inheritance diagram for keepass::UnsupportedFeatureError:
keepass::FormatError keepass::Error

Public Member Functions

 UnsupportedFeatureError (std::string msg)
 
 UnsupportedFeatureError (std::string msg, uint64_t offset)
 
ErrorCategory category () const noexcept override
 Returns the coarse category of this error.
 
- Public Member Functions inherited from keepass::FormatError
 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.
 

Detailed Description

Thrown when a database uses a valid but unsupported format feature.

This derives from FormatError so existing callers that treat all format problems alike keep working, while new callers can distinguish an unsupported KDBX version, cipher or KDF from actual corruption.

Member Function Documentation

◆ category()

ErrorCategory keepass::UnsupportedFeatureError::category ( ) const
inlineoverridevirtualnoexcept

Returns the coarse category of this error.

Reimplemented from keepass::FormatError.


The documentation for this class was generated from the following file: