Digital Authentication Framework 4.2.0.30
|
A Java reflection of the native DAError type. More...
Public Types | |
enum | Code { Invalid, NoMemory, NotProvisioned, DeviceNotFound, NoMoreSessions, DeviceDisconnected, DeviceProtocolError, BadAuthToken, KeyNotFound, AttribNotFound, MechNotFound, VerifyFailed, NotImplemented, BadParameters, OsError, UnsupportedHash } |
Enumeration matching the native DAError type. More... | |
Public Member Functions | |
DAError (Code c) | |
Construct a new DAError with specified error Code. | |
DAError (Code c, Throwable cause) | |
Construct a new DAError with specified error Code, and parent cause exception. | |
DAError (int c) | |
Constructor a new DAError with specified native error code. | |
int | getCode () |
Get native error code. | |
Static Public Member Functions | |
static Code | lookupCode (int code) |
Looks up a Code for the given native error code. | |
Static Public Attributes | |
static DAError | NotProvisioned = new DAError(Code.NotProvisioned) |
static DAError | DeviceNotFound = new DAError(Code.DeviceNotFound) |
static DAError | NoMoreSessions = new DAError(Code.NoMoreSessions) |
static DAError | DeviceDisconnected = new DAError(Code.DeviceDisconnected) |
static DAError | DeviceProtocolError = new DAError(Code.DeviceProtocolError) |
static DAError | BadAuthToken = new DAError(Code.BadAuthToken) |
static DAError | KeyNotFound = new DAError(Code.KeyNotFound) |
static DAError | AttribNotFound = new DAError(Code.AttribNotFound) |
static DAError | MechNotFound = new DAError(Code.MechNotFound) |
static DAError | VerifyFailed = new DAError(Code.VerifyFailed) |
static DAError | NotImplemented = new DAError(Code.NotImplemented) |
static DAError | BadParameters = new DAError(Code.BadParameters) |
static DAError | OsError = new DAError(Code.OsError) |
static DAError | UnsupportedHash = new DAError(Code.UnsupportedHash) |
A Java reflection of the native DAError type.
This type is both an exception (so it can be thrown and caught within Java), and an encapsulation of the native DAError enumeratoion (via the Code enum type).
Enumeration matching the native DAError type.
This enum order must be kept in sync with native DAError.
com.good.daf.DAError.DAError | ( | Code | c | ) |
Construct a new DAError with specified error Code.
c | error code |
com.good.daf.DAError.DAError | ( | Code | c, |
Throwable | cause | ||
) |
Construct a new DAError with specified error Code, and parent cause exception.
c | error code |
cause | parent cause exception |
com.good.daf.DAError.DAError | ( | int | c | ) |
Constructor a new DAError with specified native error code.
c | native error code |
int com.good.daf.DAError.getCode | ( | ) |
Get native error code.
static Code com.good.daf.DAError.lookupCode | ( | int | code | ) | [static] |
Looks up a Code for the given native error code.
Returns null if there is no known Code for that native error code.