Table of contents
Swift
Objective-C

This documentation is deprecated. It applies only to legacy version 9.x of Barcode Reader and must not be used for new development.

Please refer to the latest documentation and Migration Guide, which supersede this content.

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

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());
}

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: