SelphID Cpp SDK API
Loading...
Searching...
No Matches
SelphIDException.h
1#ifndef SELPHIDEXCEPTION_H_
2#define SELPHIDEXCEPTION_H_
3
4#include "FPhiDefines.hpp"
5
6namespace FPhiSelphID {
11enum class SelphIDExceptionType {
16 None = 0,
17
22 ErrorLicenseContent = 1,
23
28 ErrorLicenseExpired = 2,
29
34 ErrorLicenseHostID = 3,
35
40 ErrorFacialTemplate = 4,
41
46 ErrorLoadingLibrary = 5,
47
52 ErrorLicenseUsageLogging = 6,
53
58 ErrorFacialImage = 7,
59
64 ErrorDocumentData = 8,
65
70 ErrorLicenseNetwork = 9,
71
76 ErrorLicenseNetworkConnectionsExceeded = 10,
77
82 ErrorLicenseGallerySizeReached = 11,
83
88 ErrorInvalidOptions = 12,
89
94 ErrorLicenseTooOld = 13,
95
100 ErrorUnavailableFeature = 14,
101
106 ErrorIncompatibleFacialTemplate = 15,
107
112 ErrorConfigurationFileAccess = 16,
113
118 ErrorTrackingFileAccess = 17,
119
124 ErrorLoadingTrackingFile = 18,
125
130 ErrorConfigVarsEmpty = 19,
131
136 ErrorInstallPathEmpty = 20,
137
142 ErrorLivenessDataPathEmpty = 21,
143
148 ErrorLoadingFacialLibrary = 22,
149
154 ErrorLoadingLivenessLibrary = 23,
155
160 ErrorProcessingFacial = 24,
161
166 ErrorProcessingLiveness = 25,
167
172 ErrorGalleryFile = 26
173};
174
179class SelphIDException : public std::runtime_error {
180 private:
181 SelphIDExceptionType _selphIDExceptionType;
182
183 public:
188 DLL_PUBLIC SelphIDException();
189
195 DLL_PUBLIC SelphIDException(SelphIDExceptionType _selphIDExceptionType);
196
202 DLL_PUBLIC SelphIDExceptionType GetExceptionType() const;
203
209 DLL_PUBLIC std::string GetExceptionTypeDetail() const;
210};
211} // namespace FPhiSelphID
212
213#endif
SelphID exception.
Definition SelphIDException.h:179
DLL_PUBLIC SelphIDException()
Creates a new instance of SelphIDException.
DLL_PUBLIC SelphIDExceptionType GetExceptionType() const
Gets SelphID exception type.
DLL_PUBLIC std::string GetExceptionTypeDetail() const
Gets exception type detail.
DLL_PUBLIC SelphIDException(SelphIDExceptionType _selphIDExceptionType)
Creates a new instance of SelphIDException.