Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.13 KB

auxiliary-BarcodeReaderException.md

File metadata and controls

41 lines (31 loc) · 1.13 KB
layout title description keywords needAutoGenerateSidebar needGenerateH3Content noTitleIndex ignore permalink
default-layout
BarcodeReaderException Class - Dynamsoft Barcode Reader Android API Reference
This page shows the BarcodeReaderException Class of Dynamsoft Barcode Reader for Android SDK.
BarcodeReaderException, class, api reference, android
true
true
true
true
/programming/android/api-reference/auxiliary-BarcodeReaderException.html

BarcodeReaderException

Exception for signalling barcode reader errors.

class com.dynamsoft.dbr.BarcodeReaderException;
Method Type Description
getErrorCode int Get the error code

getErrorCode

Return Value

This method returns the DBR error code. Please view more about the error code in [EnumErrorCode]({{ site.mobile_enum }}error-code.html?lang=android)

Code Snippet

try {
    //Here we use decodeFile as example.
    reader.decodeFile("Your file path","");
} catch (BarcodeReaderException e) {
    Log.i("Decode", "onCreate: The error code for decode file is: "+e.getErrorCode());
}