38 : message(std::move(reason))
39 , sourceLocation(std::move(location))
50 [[nodiscard]]
const char*
what() const noexcept
override
52 return message.c_str();
61 return sourceLocation;
68 [[nodiscard]] std::string
ToString()
const
70 return message +
"\n" + sourceLocation.ToString();
111 using EnrollmentInvalidArgumentException::EnrollmentInvalidArgumentException;
123 using EnrollmentInvalidArgumentException::EnrollmentInvalidArgumentException;
135 using EnrollmentInvalidArgumentException::EnrollmentInvalidArgumentException;
147 using EnrollmentInvalidArgumentException::EnrollmentInvalidArgumentException;
159 using EnrollmentInvalidArgumentException::EnrollmentInvalidArgumentException;
std::string ToString() const
Provides message with full info about exception.
Definition EnrollmentException.h:67
const char * what() const noexcept override
Provides error message.
Definition EnrollmentException.h:49
SourceLocation Location() const noexcept
Provides location of error.
Definition EnrollmentException.h:58
EnrollmentException(std::string reason, SourceLocation location=SourceLocation())
Construct EnrollmentException object.
Definition EnrollmentException.h:36
Base exception for all enrollment-sdk invalid argument exceptions.
Definition EnrollmentException.h:96
EnrollmentException(std::string reason, SourceLocation location=SourceLocation())
Construct EnrollmentException object.
Definition EnrollmentException.h:36
Base exception for all enrollment-sdk runtime exceptions.
Definition EnrollmentException.h:84
EnrollmentException(std::string reason, SourceLocation location=SourceLocation())
Construct EnrollmentException object.
Definition EnrollmentException.h:36
Template is incompatible in requested operation.
Definition EnrollmentException.h:132
Image has wrong format or dimensions or dpi and is not suitable for processing.
Definition EnrollmentException.h:144
The template is empty or or do not contain enough distinctive data or is corrupted.
Definition EnrollmentException.h:108
Null argument is not allowed.
Definition EnrollmentException.h:156
Class to capture the source location of an error or exception.
Definition SourceLocation.h:25
Template version is not supported in this variant of Enrollment SDK.
Definition EnrollmentException.h:120