1 #ifndef NFIQ2_EXCEPTION_HPP_
2 #define NFIQ2_EXCEPTION_HPP_
30 static const std::map<NFIQ2::ErrorCode, std::string> errorCodeMessage {
35 "Feature calculation error" },
41 "An invalid configuration entry was found" },
43 "An machine learning error occurred" },
45 "Cannot create context for FJFX feature extractor" },
47 "Cannot create feature set from fingerprint data" },
49 "No feature set could be created" },
89 virtual const
char *
what() const noexcept;
113 std::
string errorMessage;
Exceptions thrown from NFIQ2 functions.
Exception(const NFIQ2::ErrorCode &errorCode, const std::string &errorMessage)
Constructor which uses supplied error code and user-defined message.
std::string getErrorMessage() const
Obtain the error message of the exception.
virtual ~Exception() noexcept
Destructor.
NFIQ2::ErrorCode getErrorCode() const
Obtain the return code of the exception.
virtual const char * what() const noexcept
Extracts thrown exception error message string.
Exception(const NFIQ2::ErrorCode &errorCode)
Constructor which uses supplied error code and default message.
Classes and functions that contribute to the calculation of NFIQ2 scores.
ErrorCode
Error codes used within the NFIQ2 namespace.
@ FJFX_CannotCreateFeatureSet
@ FJFX_CannotCreateContext
@ FJFX_NoFeatureSetCreated
@ FeatureCalculationError