com.morpho.morphosmart.sdk
Class ErrorCodes

java.lang.Object
  extended by com.morpho.morphosmart.sdk.ErrorCodes

public class ErrorCodes
extends java.lang.Object

This store different error codes of SDK MorphoSmart Android.


Field Summary
static int CLASS_NOT_INSTANTIATED
          Class Not Instantiated.
static int MORPHO_OK
          No error.
static int MORPHOERR_ADVANCED_SECURITY_LEVEL_MISMATCH
           
static int MORPHOERR_ADVANCED_SECURITY_LEVEL_NOT_AVAILABLE
           
static int MORPHOERR_ALREADY_ENROLLED
          User has already been enrolled.
static int MORPHOERR_BAD_COMPRESSION
          The Compression is not valid.
static int MORPHOERR_BAD_FINAL_FINGER_PRINT_QUALITY
           
static int MORPHOERR_BADPARAMETER
          Invalid parameter.
static int MORPHOERR_BASE_ALREADY_EXISTS
          The specified base already exist.
static int MORPHOERR_BASE_NOT_FOUND
          The specified base does not exist.
static int MORPHOERR_CANT_GRAN_PERMISSION_USB
          Could not grant permissions to USB.
static int MORPHOERR_CERTIF_INVALID
          The certificate is not valid.
static int MORPHOERR_CERTIF_UNKNOW
          The MSO has not the certificate necessary to verify the signature.
static int MORPHOERR_CLOSE_COM
          Error while closing communication port.
static int MORPHOERR_CMDE_ABORTED
          Command has been aborted.
static int MORPHOERR_COM_NOT_OPEN
          Serial COM has not been opened.
static int MORPHOERR_CONNECT
          Can not connect biometrics device.
static int MORPHOERR_CORRUPTED_CLASS
          Class has been corrupted.
static int MORPHOERR_DB_EMPTY
          The database is empty.
static int MORPHOERR_DB_FULL
          The database is full.
static int MORPHOERR_DEVICE_LOCKED
          The device is locked.
static int MORPHOERR_DEVICE_NOT_LOCK
          The device is not locked.
static int MORPHOERR_ELT_ALREADY_PRESENT
          This element is already present in the list.
static int MORPHOERR_FFD
          False Finger Detected.
static int MORPHOERR_FFD_FINGER_MISPLACED
           
static int MORPHOERR_FIELD_INVALID
          Additional field name length is more than MORPHO_FIELD_NAME_LEN.
static int MORPHOERR_FIELD_NOT_FOUND
          Field does not exist.
static int MORPHOERR_FVP_FINGER_MISPLACED_OR_WITHDRAWN
          Misplaced or withdrawn finger has been detected during acquisition (MorphoSmart™ FINGER VP only).
static int MORPHOERR_FVP_MINUTIAE_SECURITY_MISMATCH
          Security level mismatch: attempt to match fingerprint template in high security level (MorphoSmart™ FINGER VP only).
static int MORPHOERR_INTEGER_INITIALIZATION
           
static int MORPHOERR_INTERNAL
          Biometrics device performed an internal error.
static int MORPHOERR_INVALID_CLASS
          The class has been destroyed.
static int MORPHOERR_INVALID_PK_FORMAT
          Invalid PK format.
static int MORPHOERR_INVALID_TEMPLATE
          The template is not valid.
static int MORPHOERR_INVALID_USER_DATA
          The user data are not valid.
static int MORPHOERR_INVALID_USER_ID
          UserID is not valid.
static int MORPHOERR_KEY_NOT_FOUND
           
static int MORPHOERR_LICENSE_MISSING
          A required license is missing.
static int MORPHOERR_LONG_INITIALIZATION
           
static int MORPHOERR_MEMORY_DEVICE
          Not enough memory for the creation of a database in the MSO.
static int MORPHOERR_MEMORY_PC
          Not enough memory (in the PC).
static int MORPHOERR_MIXED_TEMPLATE
          Templates with different formats are mixed.
static int MORPHOERR_MOIST_FINGER
          The finger can be too moist or the scanner is wet.
static int MORPHOERR_NO_ASSOCIATED_DB
          User object has been instantiated without getUser.
static int MORPHOERR_NO_ASSOCIATED_DEVICE
          Database object has been instantiated without MorphoDevice.getDatabase.
static int MORPHOERR_NO_HIT
          Authentication or Identification failed.
static int MORPHOERR_NO_MORE_OTP
          No more OTP available (sequence number = 0).
static int MORPHOERR_NO_REGISTERED_TEMPLATE
          No templates have been registered.
static int MORPHOERR_NO_SERVER
          The Morpho MorphoSmart Service Provider Usb Server is stopped or not installed.
static int MORPHOERR_NOCALLTO_DBQUERRYFIRST
          You have to call dbQueryFirst to initialize the querry.
static int MORPHOERR_NOT_IMPLEMENTED
          Command not yet implemented in this release.
static int MORPHOERR_OTP_ENROLL_FAILED
          Enrollment failed.
static int MORPHOERR_OTP_ENROLL_NEEDED
          Enrollment needed before generating OTP.
static int MORPHOERR_OTP_IDENT_FAILED
          Identification failed.
static int MORPHOERR_OTP_LOCK_ENROLL
          ILV_OTP_ENROLL_USER Locked.
static int MORPHOERR_OTP_LOCK_GEN_OTP
          ILV_OTP_GENERATE Locked.
static int MORPHOERR_OTP_LOCK_SET_PARAM
          ILV_OTP_SET_PARAMETERS Locked.
static int MORPHOERR_OTP_NO_HIT
          Authentication or Identification failed.
static int MORPHOERR_OTP_NOT_INITIALIZED
          No parameter has been initialized.
static int MORPHOERR_OTP_PIN_NEEDED
          Code pin is needed : it is the first enrollment.
static int MORPHOERR_OTP_REENROLL_NOT_ALLOWED
          User is not allowed to be reenrolled.
static int MORPHOERR_OUT_OF_FIELD
          The number of the additional field is more than 128.
static int MORPHOERR_PROTOCOLE
          Communication protocol error.
static int MORPHOERR_RESUME_CONNEXION
          Can not connect biometrics device.
static int MORPHOERR_RESUME_CONNEXION_ALREADY_STARTED
          Resume connexion Already Started.
static int MORPHOERR_SAME_FINGER
          User gave twice the same finger.
static int MORPHOERR_SECU
          Security error.
static int MORPHOERR_SIGNER_ID
          The certificate identity is not the same than the X984 certificate identity.
static int MORPHOERR_SIGNER_ID_INVALID
          The X984 certificate identity size is different to 20 octets (SHA_1 size).
static int MORPHOERR_STATUS
          MSO returned an unknown status error.
static int MORPHOERR_TIMEOUT
          No response after defined time.
static int MORPHOERR_TO_MANY_FIELD
          There are too many fields.
static int MORPHOERR_TO_MANY_TEMPLATE
          There are too many templates.
static int MORPHOERR_UNAVAILABLE
           
static int MORPHOERR_USB_DEVICE_NAME_UNKNOWN
          The specified Usb device is not plugged.
static int MORPHOERR_USB_PERMISSION_DENIED
          USB Permission denied.
static int MORPHOERR_USER
          The communication callback functions returns error between -10000 and -10499.
static int MORPHOERR_USER_NOT_FOUND
          User is not found.
static int MORPHOWARNING_WSQ_COMPRESSION_RATIO
           
 
Method Summary
static java.lang.String getError(int codeError, int internalError)
          Get error message corresponding to given error code and internal error code
static java.lang.Boolean IntegrerInitializationValueOf(java.lang.Integer integer)
           
static java.lang.Boolean LongInitializationValueOf(java.lang.Long longValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MORPHO_OK

public static final int MORPHO_OK
No error.

See Also:
Constant Field Values

MORPHOERR_INTERNAL

public static final int MORPHOERR_INTERNAL
Biometrics device performed an internal error.

See Also:
Constant Field Values

MORPHOERR_PROTOCOLE

public static final int MORPHOERR_PROTOCOLE
Communication protocol error.

See Also:
Constant Field Values

MORPHOERR_CONNECT

public static final int MORPHOERR_CONNECT
Can not connect biometrics device.

See Also:
Constant Field Values

MORPHOERR_CLOSE_COM

public static final int MORPHOERR_CLOSE_COM
Error while closing communication port.

See Also:
Constant Field Values

MORPHOERR_BADPARAMETER

public static final int MORPHOERR_BADPARAMETER
Invalid parameter.

See Also:
Constant Field Values

MORPHOERR_MEMORY_PC

public static final int MORPHOERR_MEMORY_PC
Not enough memory (in the PC).

See Also:
Constant Field Values

MORPHOERR_MEMORY_DEVICE

public static final int MORPHOERR_MEMORY_DEVICE
Not enough memory for the creation of a database in the MSO.

See Also:
Constant Field Values

MORPHOERR_NO_HIT

public static final int MORPHOERR_NO_HIT
Authentication or Identification failed.

See Also:
Constant Field Values

MORPHOERR_STATUS

public static final int MORPHOERR_STATUS
MSO returned an unknown status error.

See Also:
Constant Field Values

MORPHOERR_DB_FULL

public static final int MORPHOERR_DB_FULL
The database is full.

See Also:
Constant Field Values

MORPHOERR_DB_EMPTY

public static final int MORPHOERR_DB_EMPTY
The database is empty.

See Also:
Constant Field Values

MORPHOERR_ALREADY_ENROLLED

public static final int MORPHOERR_ALREADY_ENROLLED
User has already been enrolled.

See Also:
Constant Field Values

MORPHOERR_BASE_NOT_FOUND

public static final int MORPHOERR_BASE_NOT_FOUND
The specified base does not exist.

See Also:
Constant Field Values

MORPHOERR_BASE_ALREADY_EXISTS

public static final int MORPHOERR_BASE_ALREADY_EXISTS
The specified base already exist.

See Also:
Constant Field Values

MORPHOERR_NO_ASSOCIATED_DB

public static final int MORPHOERR_NO_ASSOCIATED_DB
User object has been instantiated without getUser.

See Also:
Constant Field Values

MORPHOERR_NO_ASSOCIATED_DEVICE

public static final int MORPHOERR_NO_ASSOCIATED_DEVICE
Database object has been instantiated without MorphoDevice.getDatabase.

See Also:
Constant Field Values

MORPHOERR_INVALID_TEMPLATE

public static final int MORPHOERR_INVALID_TEMPLATE
The template is not valid.

See Also:
Constant Field Values

MORPHOERR_NOT_IMPLEMENTED

public static final int MORPHOERR_NOT_IMPLEMENTED
Command not yet implemented in this release.

See Also:
Constant Field Values

MORPHOERR_TIMEOUT

public static final int MORPHOERR_TIMEOUT
No response after defined time.

See Also:
Constant Field Values

MORPHOERR_NO_REGISTERED_TEMPLATE

public static final int MORPHOERR_NO_REGISTERED_TEMPLATE
No templates have been registered.

See Also:
Constant Field Values

MORPHOERR_FIELD_NOT_FOUND

public static final int MORPHOERR_FIELD_NOT_FOUND
Field does not exist.

See Also:
Constant Field Values

MORPHOERR_CORRUPTED_CLASS

public static final int MORPHOERR_CORRUPTED_CLASS
Class has been corrupted.

See Also:
Constant Field Values

MORPHOERR_TO_MANY_TEMPLATE

public static final int MORPHOERR_TO_MANY_TEMPLATE
There are too many templates.

See Also:
Constant Field Values

MORPHOERR_TO_MANY_FIELD

public static final int MORPHOERR_TO_MANY_FIELD
There are too many fields.

See Also:
Constant Field Values

MORPHOERR_MIXED_TEMPLATE

public static final int MORPHOERR_MIXED_TEMPLATE
Templates with different formats are mixed.

See Also:
Constant Field Values

MORPHOERR_CMDE_ABORTED

public static final int MORPHOERR_CMDE_ABORTED
Command has been aborted.

See Also:
Constant Field Values

MORPHOERR_INVALID_PK_FORMAT

public static final int MORPHOERR_INVALID_PK_FORMAT
Invalid PK format.

See Also:
Constant Field Values

MORPHOERR_SAME_FINGER

public static final int MORPHOERR_SAME_FINGER
User gave twice the same finger.

See Also:
Constant Field Values

MORPHOERR_OUT_OF_FIELD

public static final int MORPHOERR_OUT_OF_FIELD
The number of the additional field is more than 128.

See Also:
Constant Field Values

MORPHOERR_INVALID_USER_ID

public static final int MORPHOERR_INVALID_USER_ID
UserID is not valid.

See Also:
Constant Field Values

MORPHOERR_INVALID_USER_DATA

public static final int MORPHOERR_INVALID_USER_DATA
The user data are not valid.

See Also:
Constant Field Values

MORPHOERR_FIELD_INVALID

public static final int MORPHOERR_FIELD_INVALID
Additional field name length is more than MORPHO_FIELD_NAME_LEN.

See Also:
Constant Field Values

MORPHOERR_USER_NOT_FOUND

public static final int MORPHOERR_USER_NOT_FOUND
User is not found.

See Also:
Constant Field Values

MORPHOERR_COM_NOT_OPEN

public static final int MORPHOERR_COM_NOT_OPEN
Serial COM has not been opened.

See Also:
Constant Field Values

MORPHOERR_ELT_ALREADY_PRESENT

public static final int MORPHOERR_ELT_ALREADY_PRESENT
This element is already present in the list.

See Also:
Constant Field Values

MORPHOERR_NOCALLTO_DBQUERRYFIRST

public static final int MORPHOERR_NOCALLTO_DBQUERRYFIRST
You have to call dbQueryFirst to initialize the querry.

See Also:
Constant Field Values

MORPHOERR_USER

public static final int MORPHOERR_USER
The communication callback functions returns error between -10000 and -10499.

See Also:
Constant Field Values

MORPHOERR_BAD_COMPRESSION

public static final int MORPHOERR_BAD_COMPRESSION
The Compression is not valid.

See Also:
Constant Field Values

MORPHOERR_SECU

public static final int MORPHOERR_SECU
Security error.

See Also:
Constant Field Values

MORPHOERR_CERTIF_UNKNOW

public static final int MORPHOERR_CERTIF_UNKNOW
The MSO has not the certificate necessary to verify the signature.

See Also:
Constant Field Values

MORPHOERR_INVALID_CLASS

public static final int MORPHOERR_INVALID_CLASS
The class has been destroyed.

See Also:
Constant Field Values

MORPHOERR_USB_DEVICE_NAME_UNKNOWN

public static final int MORPHOERR_USB_DEVICE_NAME_UNKNOWN
The specified Usb device is not plugged.

See Also:
Constant Field Values

MORPHOERR_CERTIF_INVALID

public static final int MORPHOERR_CERTIF_INVALID
The certificate is not valid.

See Also:
Constant Field Values

MORPHOERR_SIGNER_ID

public static final int MORPHOERR_SIGNER_ID
The certificate identity is not the same than the X984 certificate identity.

See Also:
Constant Field Values

MORPHOERR_SIGNER_ID_INVALID

public static final int MORPHOERR_SIGNER_ID_INVALID
The X984 certificate identity size is different to 20 octets (SHA_1 size).

See Also:
Constant Field Values

MORPHOERR_FFD

public static final int MORPHOERR_FFD
False Finger Detected.

See Also:
Constant Field Values

MORPHOERR_MOIST_FINGER

public static final int MORPHOERR_MOIST_FINGER
The finger can be too moist or the scanner is wet.

See Also:
Constant Field Values

MORPHOERR_NO_SERVER

public static final int MORPHOERR_NO_SERVER
The Morpho MorphoSmart Service Provider Usb Server is stopped or not installed.

See Also:
Constant Field Values

MORPHOERR_OTP_NOT_INITIALIZED

public static final int MORPHOERR_OTP_NOT_INITIALIZED
No parameter has been initialized.

See Also:
Constant Field Values

MORPHOERR_OTP_PIN_NEEDED

public static final int MORPHOERR_OTP_PIN_NEEDED
Code pin is needed : it is the first enrollment.

See Also:
Constant Field Values

MORPHOERR_OTP_REENROLL_NOT_ALLOWED

public static final int MORPHOERR_OTP_REENROLL_NOT_ALLOWED
User is not allowed to be reenrolled.

See Also:
Constant Field Values

MORPHOERR_OTP_ENROLL_FAILED

public static final int MORPHOERR_OTP_ENROLL_FAILED
Enrollment failed.

See Also:
Constant Field Values

MORPHOERR_OTP_IDENT_FAILED

public static final int MORPHOERR_OTP_IDENT_FAILED
Identification failed.

See Also:
Constant Field Values

MORPHOERR_NO_MORE_OTP

public static final int MORPHOERR_NO_MORE_OTP
No more OTP available (sequence number = 0).

See Also:
Constant Field Values

MORPHOERR_OTP_NO_HIT

public static final int MORPHOERR_OTP_NO_HIT
Authentication or Identification failed.

See Also:
Constant Field Values

MORPHOERR_OTP_ENROLL_NEEDED

public static final int MORPHOERR_OTP_ENROLL_NEEDED
Enrollment needed before generating OTP.

See Also:
Constant Field Values

MORPHOERR_DEVICE_LOCKED

public static final int MORPHOERR_DEVICE_LOCKED
The device is locked.

See Also:
Constant Field Values

MORPHOERR_DEVICE_NOT_LOCK

public static final int MORPHOERR_DEVICE_NOT_LOCK
The device is not locked.

See Also:
Constant Field Values

MORPHOERR_OTP_LOCK_GEN_OTP

public static final int MORPHOERR_OTP_LOCK_GEN_OTP
ILV_OTP_GENERATE Locked.

See Also:
Constant Field Values

MORPHOERR_OTP_LOCK_SET_PARAM

public static final int MORPHOERR_OTP_LOCK_SET_PARAM
ILV_OTP_SET_PARAMETERS Locked.

See Also:
Constant Field Values

MORPHOERR_OTP_LOCK_ENROLL

public static final int MORPHOERR_OTP_LOCK_ENROLL
ILV_OTP_ENROLL_USER Locked.

See Also:
Constant Field Values

MORPHOERR_FVP_MINUTIAE_SECURITY_MISMATCH

public static final int MORPHOERR_FVP_MINUTIAE_SECURITY_MISMATCH
Security level mismatch: attempt to match fingerprint template in high security level (MorphoSmart™ FINGER VP only).

See Also:
Constant Field Values

MORPHOERR_FVP_FINGER_MISPLACED_OR_WITHDRAWN

public static final int MORPHOERR_FVP_FINGER_MISPLACED_OR_WITHDRAWN
Misplaced or withdrawn finger has been detected during acquisition (MorphoSmart™ FINGER VP only).

See Also:
Constant Field Values

MORPHOERR_LICENSE_MISSING

public static final int MORPHOERR_LICENSE_MISSING
A required license is missing.

See Also:
Constant Field Values

MORPHOERR_ADVANCED_SECURITY_LEVEL_MISMATCH

public static final int MORPHOERR_ADVANCED_SECURITY_LEVEL_MISMATCH
See Also:
Constant Field Values

MORPHOERR_BAD_FINAL_FINGER_PRINT_QUALITY

public static final int MORPHOERR_BAD_FINAL_FINGER_PRINT_QUALITY
See Also:
Constant Field Values

MORPHOERR_FFD_FINGER_MISPLACED

public static final int MORPHOERR_FFD_FINGER_MISPLACED
See Also:
Constant Field Values

MORPHOERR_KEY_NOT_FOUND

public static final int MORPHOERR_KEY_NOT_FOUND
See Also:
Constant Field Values

MORPHOWARNING_WSQ_COMPRESSION_RATIO

public static final int MORPHOWARNING_WSQ_COMPRESSION_RATIO
See Also:
Constant Field Values

MORPHOERR_ADVANCED_SECURITY_LEVEL_NOT_AVAILABLE

public static final int MORPHOERR_ADVANCED_SECURITY_LEVEL_NOT_AVAILABLE
See Also:
Constant Field Values

MORPHOERR_UNAVAILABLE

public static final int MORPHOERR_UNAVAILABLE
See Also:
Constant Field Values

MORPHOERR_CANT_GRAN_PERMISSION_USB

public static final int MORPHOERR_CANT_GRAN_PERMISSION_USB
Could not grant permissions to USB.

See Also:
Constant Field Values

CLASS_NOT_INSTANTIATED

public static final int CLASS_NOT_INSTANTIATED
Class Not Instantiated.

See Also:
Constant Field Values

MORPHOERR_USB_PERMISSION_DENIED

public static final int MORPHOERR_USB_PERMISSION_DENIED
USB Permission denied.

See Also:
Constant Field Values

MORPHOERR_RESUME_CONNEXION_ALREADY_STARTED

public static final int MORPHOERR_RESUME_CONNEXION_ALREADY_STARTED
Resume connexion Already Started.

See Also:
Constant Field Values

MORPHOERR_RESUME_CONNEXION

public static final int MORPHOERR_RESUME_CONNEXION
Can not connect biometrics device. USB Permission denied

See Also:
Constant Field Values

MORPHOERR_INTEGER_INITIALIZATION

public static final int MORPHOERR_INTEGER_INITIALIZATION
See Also:
Constant Field Values

MORPHOERR_LONG_INITIALIZATION

public static final int MORPHOERR_LONG_INITIALIZATION
See Also:
Constant Field Values
Method Detail

getError

public static java.lang.String getError(int codeError,
                                        int internalError)
Get error message corresponding to given error code and internal error code

Parameters:
codeError - error code
internalError - internal error code
Returns:
corresponding error message

IntegrerInitializationValueOf

public static java.lang.Boolean IntegrerInitializationValueOf(java.lang.Integer integer)

LongInitializationValueOf

public static java.lang.Boolean LongInitializationValueOf(java.lang.Long longValue)