|
Enrollment 28.2.0
|
Exception for image processing. More...
#include <ImageException.h>
Public Types | |
| enum | Reason : uint8_t { UNKNOWN_IMAGE , DECODE_IMAGE , ENCODE_IMAGE , PROCESS_IMAGE } |
| Contains all possible reasons of image exception. More... | |
Public Member Functions | |
| Reason | GetReason () const |
| ImageException reason. | |
| ImageException (Reason r, SourceLocation loc=SourceLocation()) | |
| Constructor creates exception with given reason and information about source location. | |
| ImageException (Reason r, std::string d, SourceLocation loc=SourceLocation()) | |
| Constructor creates exception with given reason and more specific message. | |
| EnrollmentException (std::string reason, SourceLocation location=SourceLocation()) | |
| Construct EnrollmentException object. | |
| const char * | what () const noexcept override |
| Provides error message. | |
| SourceLocation | Location () const noexcept |
| Provides location of error. | |
| std::string | ToString () const |
| Provides message with full info about exception. | |
Exception for image processing.
| enum Reason : uint8_t |
Contains all possible reasons of image exception.
| Enumerator | |
|---|---|
| UNKNOWN_IMAGE | Image type is not supported. For supported image types
|
| DECODE_IMAGE | Image type is supported but image format is corrupted. |
| ENCODE_IMAGE | Problem encode image to given format. |
| PROCESS_IMAGE | Problem to process an image. |
|
inlineexplicit |
Constructor creates exception with given reason and information about source location.
| r | Reason of exception |
| loc | (optional) Source location of where the exception was thrown, providing file name, function name, and line information. Defaults to a default-constructed SourceLocation instance if not provided. |
|
inline |
Constructor creates exception with given reason and more specific message.
| r | Reason of exception |
| d | Description |
| loc | Source location |
|
inlineexplicitinherited |
Construct EnrollmentException object.
Constructor of EnrollmentException exception. This exception is used for general errors or as a base class for custom exceptions of the enrollment SDK.
| reason | error reason |
| location | Source location of where the exception was thrown |
|
inlinenodiscard |
ImageException reason.
|
inlinenodiscardnoexceptinherited |
Provides location of error.
|
inlinenodiscardinherited |
Provides message with full info about exception.
|
inlinenodiscardoverridenoexceptinherited |
Provides error message.
Standard exception error message interface which is usually used for printing message when exception is caught in user application.