Exceptions thrown from NFIQ2 functions.
More...
#include <nfiq2_exception.hpp>
Inherits std::exception.
|
| Exception (const NFIQ2::ErrorCode errorCode) |
| Constructor that supplies a default error description.
|
|
| Exception (const NFIQ2::ErrorCode errorCode, const std::string &errorMessage) |
| Constructor that relies on a developer-provided error description.
|
|
virtual | ~Exception () noexcept |
| Destructor.
|
|
virtual const char * | what () const noexcept override |
| Extracts thrown exception error message string.
|
|
NFIQ2::ErrorCode | getErrorCode () const |
| Obtain the code that broadly describes the type of error.
|
|
std::string | getErrorMessage () const |
| Obtain a description of what happened.
|
|
Exceptions thrown from NFIQ2 functions.
Definition at line 39 of file nfiq2_exception.hpp.
◆ Exception() [1/2]
Constructor that supplies a default error description.
- Parameters
-
errorCode | Code that broadly describes the type of error. |
◆ Exception() [2/2]
NFIQ2::Exception::Exception |
( |
const NFIQ2::ErrorCode | errorCode, |
|
|
const std::string & | errorMessage ) |
Constructor that relies on a developer-provided error description.
- Parameters
-
errorCode | Code that broadly describes the type of error. |
errorMessage | Description of what happened. |
◆ ~Exception()
virtual NFIQ2::Exception::~Exception |
( |
| ) |
|
|
virtualnoexcept |
◆ what()
virtual const char * NFIQ2::Exception::what |
( |
| ) |
const |
|
overridevirtualnoexcept |
Extracts thrown exception error message string.
- Returns
- The exception message.
◆ getErrorCode()
Obtain the code that broadly describes the type of error.
- Returns
- Code that broadly describes the type of error.
◆ getErrorMessage()
std::string NFIQ2::Exception::getErrorMessage |
( |
| ) |
const |
Obtain a description of what happened.
- Returns
- Description of what happened.
◆ defaultErrorMessage()
static std::string NFIQ2::Exception::defaultErrorMessage |
( |
const NFIQ2::ErrorCode | errorCode | ) |
|
|
static |
Obtain a default error message for a given ErrorCode.
- Parameters
-
errorCode | Error code from ErrorCode |
- Returns
- String containing default description of
errorCode
.
The documentation for this class was generated from the following file: