|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.upek.android.ptapi.PtException
public class PtException
When any call of PTApi fails, this exception is throwed. Contains error code, which is specifying reason of fail.
Field Summary | |
---|---|
static int |
PT_STATUS_ACCESS_DENIED
Access to operation is denied |
static int |
PT_STATUS_ALREADY_OPENED
Connection is already opened |
static int |
PT_STATUS_ANTISPOOFING_EXPORT
Attempt to export antispoofing info from TFM |
static int |
PT_STATUS_ANTISPOOFING_IMPORT
Attempt to import antispoofing info to TFM |
static int |
PT_STATUS_ANTISPOOFING_NOT_CAPTURED
Antispoofing data were not captured |
static int |
PT_STATUS_API_ALREADY_INITIALIZED
PerfectTrust API has been already initialized |
static int |
PT_STATUS_API_NOT_INIT
PerfectTrust API wasn't initialized |
static int |
PT_STATUS_AS_BG_OUT_OF_RANGE
AS background out of range. |
static int |
PT_STATUS_AS_OFFSET_OUT_OF_RANGE
AS offset out of range. |
static int |
PT_STATUS_AUTHENTIFICATION_FAILED
Authentification failed |
static int |
PT_STATUS_BAD_BIO_TEMPLATE
Bad biometric template |
static int |
PT_STATUS_BIO_OPERATION_CANCELED
Biometric operation canceled |
static int |
PT_STATUS_BIOMETRIC_TIMEOUT
Timeout for biometric operation has expired |
static int |
PT_STATUS_CALIBRATION_FAILED
Calibration failed |
static int |
PT_STATUS_CANCEL_IGNORED
Cancel request was ignored. |
static int |
PT_STATUS_CANNOT_CONNECT
Cannot connect to TFM |
static int |
PT_STATUS_COMM_ERROR
General communication error |
static int |
PT_STATUS_CONSOLIDATION_FAILED
Failure of template consolidation |
static int |
PT_STATUS_CRYPTO_ERROR
General crypto error |
static int |
PT_STATUS_CRYPTO_KEY_TOO_LONG
Key too long probably due to the export regulations; |
static int |
PT_STATUS_CRYPTO_MECHANISM_NOT_SUPPORTED
Requested cryptographic mechanism is not supported |
static int |
PT_STATUS_CRYPTO_PADDING_ERROR
Padding error detected during crypto operation |
static int |
PT_STATUS_CRYPTO_RSA_BAD_PUBLIC_KEY
Bad RSA public key supplied |
static int |
PT_STATUS_CRYPTO_RSA_KEY_CHECK
RSA key is not consistent |
static int |
PT_STATUS_CRYPTO_SYM_BAD_KEY
Bad symmetric key used |
static int |
PT_STATUS_DATA_TOO_LARGE
Passed data are too large |
static int |
PT_STATUS_DEVICE_NOT_FOUND
Device not found |
static int |
PT_STATUS_DEVICE_NOT_GRANTED
Access to device not granted |
static int |
PT_STATUS_DEVICE_SICK
Device doesn't work as expected |
static int |
PT_STATUS_DIAGNOSTICS_FAILED
Diagnostics failed |
static int |
PT_STATUS_EMULATED_NVM_INVALID_FORMAT
Emulated NVM is not formatted. |
static int |
PT_STATUS_ENDIAN_ERROR
Can not convert some parameter to proper endian. |
static int |
PT_STATUS_EX_ACCESS_VIOLATION
Device is already opened for exclusive access by somebody else |
static int |
PT_STATUS_FUNCTION_FAILED
Function failed |
static int |
PT_STATUS_GAIN_OFFSET
Gain offset calibration error |
static int |
PT_STATUS_GENERAL_ERROR
General or unknown error status. |
static int |
PT_STATUS_GOING_TO_SLEEP
Power off attempt failed |
static int |
PT_STATUS_HW_RNG_INIT_ERROR
HW random number generator initialization failed |
static int |
PT_STATUS_I2C_EEPROM_ERROR
I2C EEPROM error occured |
static int |
PT_STATUS_INVALID_HANDLE
Invalid handle error |
static int |
PT_STATUS_INVALID_INPUT_BIR_FORM
Invalid form of PT_INPUT_BIR structure |
static int |
PT_STATUS_INVALID_OTP_SEED
Invalid OTP seed |
static int |
PT_STATUS_INVALID_PARAMETER
Invalid parameter error |
static int |
PT_STATUS_INVALID_PURPOSE
Purpose parameter or BIR's purpose; is invalid for given operation |
static int |
PT_STATUS_JAVA_CB_ERROR
Java callback throws java.lang.Error |
static int |
PT_STATUS_JAVA_CB_REMOTE
Java callback throws java.rmi.RemoteException |
static int |
PT_STATUS_KEYEX_KEY_NOT_SET
Private KEYEX key was not set |
static int |
PT_STATUS_LATCHUP_DETECTED
Sensor latch-up event detected |
static int |
PT_STATUS_MALLOC_FAILED
Failure of extern memory allocation function |
static int |
PT_STATUS_MORE_DATA
There is more data to return than the supplied buffer can contain |
static int |
PT_STATUS_NO_DATA
No data found |
static int |
PT_STATUS_NO_LAST_MATCH_DATA
Last match data don't exist |
static int |
PT_STATUS_NO_SENSOR
No sensor |
static int |
PT_STATUS_NO_TEMPLATE
No template was captured in current session |
static int |
PT_STATUS_NOT_ENOUGH_MEMORY
Not enough memory to process given operation |
static int |
PT_STATUS_NOT_ENOUGH_PERMANENT_MEMORY
Not enough permanent memory to store data |
static int |
PT_STATUS_NOT_ENOUGH_TFM_MEMORY
Not enough memory on TFM to process given operation |
static int |
PT_STATUS_NOT_IMPLEMENTED
Function or service is not implemented |
static int |
PT_STATUS_NOT_SUPPORTED
Requested functionality or value of parameter is not supported |
static int |
PT_STATUS_NVM_CANNOT_READ
NVM read operation failed |
static int |
PT_STATUS_NVM_CANNOT_WRITE
NVM write operation failed |
static int |
PT_STATUS_NVM_ERROR
General NVM error |
static int |
PT_STATUS_NVM_INVALID_FILE_ID
Attempt to access non-existing internal NVM file |
static int |
PT_STATUS_NVM_INVALID_FORMAT
NVM has invalid format or is not formatted at all |
static int |
PT_STATUS_NVM_UNSUPPORTED_VERSION
NVM has unsupported version |
static int |
PT_STATUS_OK
Success return status |
static int |
PT_STATUS_OLD_VERSION
Attempt to upgrade to older firmware version |
static int |
PT_STATUS_OPERATION_CANCELED
Operation was canceled |
static int |
PT_STATUS_OS_ACCESS_DENIED
The OS denied to perform the operation. |
static int |
PT_STATUS_OTP_SEQUENCE_NUMBER_OVERFLOW
Overflow of One Time Password sequence number |
static int |
PT_STATUS_POWER_SHUTOFF
Asynchronous power shut down |
static int |
PT_STATUS_SAFE_MODE
Firmware is missing or corrupted, device is running in safe mode |
static int |
PT_STATUS_SAME_VERSION
Attempt to upgrade to same firmware version |
static int |
PT_STATUS_SC_BAD_PARAM
Incorrect parameter detected |
static int |
PT_STATUS_SC_COMM_FAIL
Failure during communication with the card |
static int |
PT_STATUS_SC_ERROR
General smart-card error |
static int |
PT_STATUS_SC_NO_CARD
The card is not present in the reader |
static int |
PT_STATUS_SC_NOT_SUPPORTED
Communication with this card is not supported |
static int |
PT_STATUS_SECCHAN_KEY_NOT_SET
Private SECCHAN key was not set |
static int |
PT_STATUS_SECURE_CHANNEL_ALREADY_ESTABLISHED
Secure channel has been already established |
static int |
PT_STATUS_SENSOR_BUS_CONGESTION
Error in communication with sensor due to bus congestion. |
static int |
PT_STATUS_SENSOR_HW_ERROR
Sensor hardware error occured |
static int |
PT_STATUS_SENSOR_NOT_CALIBRATED
Sensor is not calibrated |
static int |
PT_STATUS_SENSOR_NOT_REPAIRABLE
Sensor is not repairable |
static int |
PT_STATUS_SENSOR_OUT_OF_LIMITS
The measured values are out of allowable limits |
static int |
PT_STATUS_SESSION_NOT_AUTHENTICATED
Session was not authenticated yet |
static int |
PT_STATUS_SESSION_TERMINATED
Session was terminated |
static int |
PT_STATUS_SIGN_KEY_NOT_SET
Private SIGN key was not set |
static int |
PT_STATUS_SLOT_NOT_FOUND
Requested slot was not found |
static int |
PT_STATUS_SONLY_ALREADY_OPENED
SONLY session is already opened |
static int |
PT_STATUS_SUSPEND
Connection interrupted because of suspend request |
static int |
PT_STATUS_SWIPE_TOO_BAD
Finger swipe is too bad for image reconstruction |
static int |
PT_STATUS_TCS_OVERCURRENT
TCS overcurrent calibration error. |
static int |
PT_STATUS_TIMEOUT
Timeout elapsed |
static int |
PT_STATUS_TOO_MANY_BAD_LINES
Too many bad lines |
static int |
PT_STATUS_TOUCH_CHIP_ERROR
Touch chip error occured |
static int |
PT_STATUS_UNKNOWN_COMMAND
Unknown command |
static int |
PT_STATUS_UNSUPPORTED_SPEED
Host hardware doesn't support requested communication speed |
static int |
PT_STATUS_VCH_ALREADY_REGISTERED
Virtual Channel implementation has been already registere |
static int |
PT_STATUS_VCH_COMM_ERROR
Virtual Channel communication error has occurred. |
static int |
PT_STATUS_VCH_ERROR
General Virtual Channel error. |
static int |
PT_STATUS_VCH_CHANNEL_NOT_AVAILABLE
Virtual Channel not available (the max number of simultaneously opened channels has been reached). |
static int |
PT_STATUS_VCH_INVALID_HANDLE
Virtual Channel invalid handle. |
static int |
PT_STATUS_VCH_INVALID_IMPLEMENTATION
Virtual Channel implementation structure contains invalid entries. |
static int |
PT_STATUS_VCH_INVALID_PROTOCOL
Invalid version of the Virtual Channel protocol or internal protocol error. |
static int |
PT_STATUS_VCH_JOB_ABORTED
Virtual Channel job has been aborted. |
static int |
PT_STATUS_VCH_LOST
Virtual channel connection has been lost |
static int |
PT_STATUS_VCH_MISSING_DEPENDENCIES
An external module required by Virtual Channel is missing. |
static int |
PT_STATUS_VCH_NOT_REGISTERED
Virtual Channel implementation has not been registered. |
static int |
PT_STATUS_VCH_TIMEOUT
Virtual Channel timeout has expired. |
static int |
PT_STATUS_WRONG_FINGER_DATA_ACCESS_RIGHTS
Used wrong finger data access rights |
static int |
PT_STATUS_WRONG_RESPONSE
TFM has returned wrong or unexpected response |
Constructor Summary | |
---|---|
PtException(int code)
Creates new exception with specified error code. |
Method Summary | |
---|---|
int |
getCode()
Returns error code of exception. |
java.lang.String |
getMessage()
Returns text description of raised error in PtApi library |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int PT_STATUS_ACCESS_DENIED
public static final int PT_STATUS_ALREADY_OPENED
public static final int PT_STATUS_ANTISPOOFING_EXPORT
public static final int PT_STATUS_ANTISPOOFING_IMPORT
public static final int PT_STATUS_ANTISPOOFING_NOT_CAPTURED
public static final int PT_STATUS_API_ALREADY_INITIALIZED
public static final int PT_STATUS_API_NOT_INIT
public static final int PT_STATUS_AS_BG_OUT_OF_RANGE
public static final int PT_STATUS_AS_OFFSET_OUT_OF_RANGE
public static final int PT_STATUS_AUTHENTIFICATION_FAILED
public static final int PT_STATUS_BAD_BIO_TEMPLATE
public static final int PT_STATUS_BIO_OPERATION_CANCELED
public static final int PT_STATUS_BIOMETRIC_TIMEOUT
public static final int PT_STATUS_CALIBRATION_FAILED
public static final int PT_STATUS_CANCEL_IGNORED
public static final int PT_STATUS_CANNOT_CONNECT
public static final int PT_STATUS_COMM_ERROR
public static final int PT_STATUS_CONSOLIDATION_FAILED
public static final int PT_STATUS_CRYPTO_ERROR
public static final int PT_STATUS_CRYPTO_KEY_TOO_LONG
public static final int PT_STATUS_CRYPTO_MECHANISM_NOT_SUPPORTED
public static final int PT_STATUS_CRYPTO_PADDING_ERROR
public static final int PT_STATUS_CRYPTO_RSA_BAD_PUBLIC_KEY
public static final int PT_STATUS_CRYPTO_RSA_KEY_CHECK
public static final int PT_STATUS_CRYPTO_SYM_BAD_KEY
public static final int PT_STATUS_DATA_TOO_LARGE
public static final int PT_STATUS_DEVICE_NOT_FOUND
public static final int PT_STATUS_DEVICE_NOT_GRANTED
public static final int PT_STATUS_DEVICE_SICK
public static final int PT_STATUS_DIAGNOSTICS_FAILED
public static final int PT_STATUS_EMULATED_NVM_INVALID_FORMAT
public static final int PT_STATUS_ENDIAN_ERROR
public static final int PT_STATUS_EX_ACCESS_VIOLATION
public static final int PT_STATUS_FUNCTION_FAILED
public static final int PT_STATUS_GAIN_OFFSET
public static final int PT_STATUS_GENERAL_ERROR
public static final int PT_STATUS_GOING_TO_SLEEP
public static final int PT_STATUS_HW_RNG_INIT_ERROR
public static final int PT_STATUS_I2C_EEPROM_ERROR
public static final int PT_STATUS_INVALID_HANDLE
public static final int PT_STATUS_INVALID_INPUT_BIR_FORM
public static final int PT_STATUS_INVALID_OTP_SEED
public static final int PT_STATUS_INVALID_PARAMETER
public static final int PT_STATUS_INVALID_PURPOSE
public static final int PT_STATUS_JAVA_CB_ERROR
public static final int PT_STATUS_JAVA_CB_REMOTE
public static final int PT_STATUS_KEYEX_KEY_NOT_SET
public static final int PT_STATUS_LATCHUP_DETECTED
public static final int PT_STATUS_MALLOC_FAILED
public static final int PT_STATUS_MORE_DATA
public static final int PT_STATUS_NO_DATA
public static final int PT_STATUS_NO_LAST_MATCH_DATA
public static final int PT_STATUS_NO_SENSOR
public static final int PT_STATUS_NO_TEMPLATE
public static final int PT_STATUS_NOT_ENOUGH_MEMORY
public static final int PT_STATUS_NOT_ENOUGH_PERMANENT_MEMORY
public static final int PT_STATUS_NOT_ENOUGH_TFM_MEMORY
public static final int PT_STATUS_NOT_IMPLEMENTED
public static final int PT_STATUS_NOT_SUPPORTED
public static final int PT_STATUS_NVM_CANNOT_READ
public static final int PT_STATUS_NVM_CANNOT_WRITE
public static final int PT_STATUS_NVM_ERROR
public static final int PT_STATUS_NVM_INVALID_FILE_ID
public static final int PT_STATUS_NVM_INVALID_FORMAT
public static final int PT_STATUS_NVM_UNSUPPORTED_VERSION
public static final int PT_STATUS_OK
public static final int PT_STATUS_OLD_VERSION
public static final int PT_STATUS_OPERATION_CANCELED
public static final int PT_STATUS_OS_ACCESS_DENIED
public static final int PT_STATUS_OTP_SEQUENCE_NUMBER_OVERFLOW
public static final int PT_STATUS_POWER_SHUTOFF
public static final int PT_STATUS_SAFE_MODE
public static final int PT_STATUS_SAME_VERSION
public static final int PT_STATUS_SC_BAD_PARAM
public static final int PT_STATUS_SC_COMM_FAIL
public static final int PT_STATUS_SC_ERROR
public static final int PT_STATUS_SC_NO_CARD
public static final int PT_STATUS_SC_NOT_SUPPORTED
public static final int PT_STATUS_SECCHAN_KEY_NOT_SET
public static final int PT_STATUS_SECURE_CHANNEL_ALREADY_ESTABLISHED
public static final int PT_STATUS_SENSOR_BUS_CONGESTION
public static final int PT_STATUS_SENSOR_HW_ERROR
public static final int PT_STATUS_SENSOR_NOT_CALIBRATED
public static final int PT_STATUS_SENSOR_NOT_REPAIRABLE
public static final int PT_STATUS_SENSOR_OUT_OF_LIMITS
public static final int PT_STATUS_SESSION_NOT_AUTHENTICATED
public static final int PT_STATUS_SESSION_TERMINATED
public static final int PT_STATUS_SIGN_KEY_NOT_SET
public static final int PT_STATUS_SLOT_NOT_FOUND
public static final int PT_STATUS_SONLY_ALREADY_OPENED
public static final int PT_STATUS_SUSPEND
public static final int PT_STATUS_SWIPE_TOO_BAD
public static final int PT_STATUS_TCS_OVERCURRENT
public static final int PT_STATUS_TIMEOUT
public static final int PT_STATUS_TOO_MANY_BAD_LINES
public static final int PT_STATUS_TOUCH_CHIP_ERROR
public static final int PT_STATUS_UNKNOWN_COMMAND
public static final int PT_STATUS_UNSUPPORTED_SPEED
public static final int PT_STATUS_VCH_ALREADY_REGISTERED
public static final int PT_STATUS_VCH_COMM_ERROR
public static final int PT_STATUS_VCH_ERROR
public static final int PT_STATUS_VCH_CHANNEL_NOT_AVAILABLE
public static final int PT_STATUS_VCH_INVALID_HANDLE
public static final int PT_STATUS_VCH_INVALID_IMPLEMENTATION
public static final int PT_STATUS_VCH_INVALID_PROTOCOL
public static final int PT_STATUS_VCH_JOB_ABORTED
public static final int PT_STATUS_VCH_LOST
public static final int PT_STATUS_VCH_MISSING_DEPENDENCIES
public static final int PT_STATUS_VCH_NOT_REGISTERED
public static final int PT_STATUS_VCH_TIMEOUT
public static final int PT_STATUS_WRONG_FINGER_DATA_ACCESS_RIGHTS
public static final int PT_STATUS_WRONG_RESPONSE
Constructor Detail |
---|
public PtException(int code)
code
- Code of error, which was be raiesed.Method Detail |
---|
public int getCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |