11#ifndef NFIQ2_EXCEPTION_HPP_
12#define NFIQ2_EXCEPTION_HPP_
60 const std::string &errorMessage);
72 virtual const
char *
what() const noexcept override;
109 const std::string errorMessage {};
Exceptions thrown from NFIQ2 functions.
static std::string defaultErrorMessage(const NFIQ2::ErrorCode errorCode)
Obtain a default error message for a given ErrorCode.
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.
std::string getErrorMessage() const
Obtain a description of what happened.
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.
Classes and functions that contribute to the calculation of unified quality scores.
ErrorCode
Error codes used within the NFIQ2 namespace.
@ FJFX_CannotCreateFeatureSet
@ FJFX_CannotCreateContext
@ QualityMeasureCalculationError
@ FJFX_NoFeatureSetCreated
@ InvalidUnifiedQualityScore