Scandit.Error

new Error()

Error objects provide additional information about problems encountered while performing an operation. Scandit.Error inherits from the standard JavaScript Error class.

Properties:
Name Type Description
code number

A code identifying the specific error type. Is one of Scandit.Error.Code.

message string

A short, human-readable summary of the error, directly inferred from the error code.

detail string

Human-readable information containing further details that are specific to one instance of an error. Can not be inferred from the error code. An error detail is only included if there is additional information available about the error.

Members

(static, readonly) Code :integer

Enumeration of all error codes that can be thrown.

Type:
  • integer
Properties:
Name Type Description
UNKNOWN integer

An unknown error occurred that is not covered by any other error. Check the details of the error to get additional information. (0)

NOT_SUPPORTED integer

The api/function is not supported for the platform and/or device. (1)

NO_NETWORK integer

There is no network connection available that connects the device to the internet. (2)

UNKNOWN_EVENT integer

The specified event is not available to subscribe to or unsubscribe from. (3)

WRONG_PARAMETER_TYPE integer

A provided parameter is of the wrong type. (4)

CAMERA_NO_PERMISSION integer

The app does not have permission to open the camera. (1000)

CAMERA_OPEN_FAILED integer

Opening the camera failed. This is likely because an app has locked the camera. (1001)

CAMERA_START_FAILED integer

Starting the camera failed. (1002)

CAMERA_CANCELED integer

The user canceled the camera dialog. (1003)

CAMERA_NOT_AVAILABLE integer

The device does not have a camera. (1004)

CAMERA_SAVE_FAILED integer

Saving the captured photo to the file system failed. (1005)

SIGNATURE_CANCELED integer

The user canceled the signature capture dialog. (1100)

SIGNATURE_ALREADY_VISIBLE integer

The signature capture dialog is already open and can not be opened again. (1101)

SIGNATURE_SAVE_FAILED integer

Saving the captured signature to the file system failed. (1102)

DB_NOT_STARTED integer

The database has not been started and can not process requests yet. (1200)

DB_QUERY_CORRUPT integer

The query is corrupt and can not be processed. (1201)

DB_SAVE_FAILED_MISMATCH integer

Failed to save the document because the type did not match. (1202)

DB_SAVE_FAILED integer

Failed to save the document. (1203)

DB_DOCUMENT_NOT_FOUND integer

The specified document could not be found. (1204)

DB_FILE_NOT_FOUND integer

The specified file could not be found. (1205)

DB_QUERY_EXECUTION_FAILED integer

The database failed to execute the query. Check the error details for more information. (1206)

DB_INTERNAL_INCONSISTENCY integer

The database encountered internal inconsistencies. Check the error details for more information. (1207)

FS_WRITE_FAILED integer

Writing to the file system failed. (1300)

GEOLOCATION_NO_PERMISSION integer

The app does not have permission to retrieve geolocation data. (1400)

GEOLOCATION_DISABLED integer

The device has disabled the retrieval of geolocation data. (1401)

GEOLOCATION_TIME_OUT integer

The request timed out before current geolocation data was available. (1402)

HTTP_METHOD_NOT_SUPPORTED integer

The specified http method is not supported (only GET, POST and PUT are supported). (1500)

HTTP_FILE_MISSING integer

Specified file does not exist in the phone's local storage. (1501)

HTTP_UNABLE_TO_RESOLVE_HOST integer

The device is unable to resolve the specified host. (1502)

HTTP_INVALID_URL integer

The specified URL is invalid. (1503)

HTTP_CONNECTION_INTERRUPTED integer

The HTTP connection was interrupted before the request could be fully completed. (1504)

HTTP_UNREACHABLE integer

The server is unreachable. (1505)

HTTP_TIMEOUT integer

The request timed out. (1506)

DEFERRED_NOT_STARTED integer

The deferred service has not started and can not process any requests. (1600)

DEFERRED_QUERY_INVALID integer

The query is invalid and can not be processed. (1601)

DEFERRED_UNEXPECTED_STATUS_CODE integer

An unexpected status code was received (as defined in retryStatusCodes). (1602)

MAP_NOT_INITIALIZED integer

The map has not been initialized, you have to call show() first. (1700)

MAP_COORDINATES_INVALID integer

The specified coordinates are invalid. (1701)

MAP_MARKER_NOT_FOUND integer

The specified marker was not found. (1702)

MAP_MARKER_COLOR_INVALID integer

The specified marker color is invalid. (1703)

MAP_MARKER_ICON_INVALID integer

The specified marker icon is invalid. (1704)

MAP_ZOOM_INVALID integer

The specified zoom value is invalid. (1705)

MAP_UNRECOGNIZED_TYPE integer

The specified map type can not be recognized. Possible values are normal, hybrid, satellite, terrain. (1706)

MAP_GOOGLE_MAPS_NOT_INSTALLED integer

The Google Maps apps is not installed and can not be launched. (1707)

FTP_LOGIN_FAILED integer

FTP login failed. (1800)

FTP_NO_LOCAL_PATH integer

The localPath option is mandatory for this function but has not been set. (1801)

FTP_NO_REMOTE_PATH integer

The remotePath option is mandatory for this function but has not been set. (1802)

FTP_DELETE_FAILED integer

Deleting the specified file/folder failed. (1803)

FTP_LIST_FILES_FAILED integer

Listing files in the specified folder failed. (1804)

FTP_MKDIR_FAILED integer

Making a directory failed. (1805)

FTP_RENAME_FAILED integer

Renaming the specified file failed. (1806)

FTP_CD_FAILED integer

Changing to the specified directory failed. (1807)

FTP_NO_NEW_NAME integer

The newName option is mandatory for this function but has not been set. (1808)

FTP_RETRIEVE_FAILED integer

Failed to retrieve the specified file. (1809)

FTP_STORE_FAILED integer

Failed to store the specified file. (1810)

FTP_CONNECTION_INTERRUPTED integer

The FTP connection was interrupted before the request could be fully completed. (1811)

WEBSITE_LOAD_FAILED integer

Loading the specified URL in the webview failed. (1901)

NETWORKINFO_NOT_AVAILABLE integer

The network info is not available. (200)

GEOCODER_FAILED integer

The geocoder failed. (2100)

UNABLE_TO_OPEN integer

The Uri is not recognized and cannot be opened. (2200)

UNABLE_TO_CONVERT integer

The Uri cannot be converted. (2200)

EMAIL_DAILY_LIMIT_EXCEEDED integer

The daily e-mail limit has been exceeded and no more e-mails can be sent. (2300)

ANNOTATION_CANCELED integer

The user canceled the annotation capture dialog. (2400)

ANNOTATION_ALREADY_VISIBLE integer

The annotation capture dialog is already open and can not be opened again. (2401)

ANNOTATION_SAVE_FAILED integer

Saving the captured annotation to the file system failed. (2402)

ANNOTATION_FILE_MISSING integer

Specified file does not exist in the phone's local storage. (2403)