ScannerException class

Exception thrown by scanner operations when a barcode-related error occurs.

Catch this in any scanner call (e.g. enable(), read()) to determine the specific ScannerResults reason for the failure.

See: https://techdocs.zebra.com/emdk-for-android/13-0/api/reference/com/symbol/emdk/barcode/ScannerException

Implemented types

Constructors

ScannerException(ScannerResults result, [String? message])
const
ScannerException.fromMap(Map<String, dynamic> map)
Creates a ScannerException from a Map received via the platform channel.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
message → String?
Optional human-readable message accompanying the exception.
final
result → ScannerResults
The specific result code describing why the exception was thrown.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Converts this ScannerException to a Map suitable for sending over the platform channel.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited