Getnet DocsGetnet Docs

Error Codes

This reference lists the error codes returned by the various onError callbacks in the PeripheralsLib.

Barcode Scanner Errors

Returned by BarcodeCallback.onError(int errorCode).

CodeMeaningDescription
1TimeoutThe scanning operation timed out.
2Not SupportedProfessional barcode reading is not supported on this device.
3User CancelledThe scan was cancelled by the user (e.g., via hardware button).
99IndeterminateAn unknown error occurred.

Terminal Configuration Errors

Returned by ConfigCallback.onError(int errorCode).

CodeMeaningDescription
-1Configuration ErrorError in the configuration parameters or application.
-2Not SupportedThe requested functionality is not supported.
-3Communication ErrorFailed to communicate with the terminal service.
-99IndeterminateAn unknown error occurred.

Health Card Reader Errors

Returned by MagReadCallback.onError(int errorCode, String description).

CodeMeaning
0Process Error
1Error reading tracks

Printing Errors

Returned by PrintBmpCallback.onError(String error).

  • Type: String
  • Description: The printing method returns a descriptive string rather than a numeric code. Common messages usually relate to connection status, paper out, or overheating.