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 |
Exception for signalling barcode reader errors.
class com.dynamsoft.dbr.BarcodeReaderException;
Method | Type | Description |
---|---|---|
getErrorCode |
int | Get the error code |
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());
}