Errors where can they happen ?

Note: It is an enum. Please do not use the ordinal number
We have the following values:
UNDEFINED (should never happen)
  • all screens
CANCELED (if no error occurred but the user canceled)
  • all screens
UNKNOWN_ERROR (if an unexpected situation occurred; e.g.: unexpected server response)
  • Document selection screen
  • NFC screen
  • Face recognition screen
  • Face recognition result screen
CONNECTION_ERROR (no connection detected)
  • Document selection screen
  • NFC screen
  • Face recognition screen
  • Face recognition result screen
SERVER_ERROR (if http code 5xx was received)
  • Document selection screen
  • NFC screen
  • Face recognition screen
  • Face recognition result screen
SESSION_EXPIRED (if the session or the NFC session expired)
  • all screens
NFC_ACCESS_CONTROL_ERROR (if the chip was not accesseable)
  • NFC screen
DOCUMENT_EXPIRED (if the document is expired and the server does not accepted it)
  • MRZ result screen
  • NFC result screen
INVALID_DOCUMENT_CODE (if th document code was not accepted by the server)
  • MRZ result screen
  • NFC result screen
INVALID_NATIONALITY (if the nationality was not accepted by the server)
  • MRZ result screen
  • NFC result screen
INVALID_ISSUING_COUNTRY (if the issuing country was not accepted by the server)
  • MRZ result screen
  • NFC result screen
PASSIVE_AUTHENTICATION_ERROR (if a passive authentication error occurred, e.g. the certificate is not known by the server)
  • MRZ result screen
  • NFC result screen
CLONE_DETECTION_ERROR (if a clone detection error occurred or the document does not support clone detection and the server requires clone detection)
  • MRZ result screen
  • NFC result screen
FACE_RECOGNITION_ERROR (if a face recognition error occurred)
  • Face recognition result screen
AUTHORIZATION_ERROR (if an authorization error occurred while server communication)
  • Document selection screen
  • NFC screen
  • Face recognition screen
  • Face recognition result screen
SERVICE_UNAVAILABLE (if the server is unavailable, e.g.: timeout or 404 on create session)
  • Document selection screen
  • NFC screen
  • Face recognition screen
  • Face recognition result screen
Creation date: 22/03/2018 13:57 ()      Updated: 22/03/2018 13:57 ()