ReaderError class

A structured error surfaced by the unified reader SDK.

The native bridges build instances of this type from their platform-specific exceptions; POS-level code matches on code (which is stable across platforms) and uses nativeCode only for diagnostics or telemetry.

Implemented types

Constructors

ReaderError({required ReaderErrorCode code, required String message, String? nativeCode, Map<String, dynamic>? details, bool recoverable = false})
const
ReaderError.fromJson(Map<String, dynamic> json)
factory

Properties

code → ReaderErrorCode
Stable, cross-platform error code.
final
details → Map<String, dynamic>?
Optional, non-sensitive structured details (e.g. retry hints).
final
hashCode → int
The hash code for this object.
no setteroverride
message → String
Human-readable message suitable for logs. Must not include card data, ARQC, KSN, PAN, PIN, CVV, or other sensitive values.
final
nativeCode → String?
Platform-specific error code (e.g. a MagTek SDK error number, an Android exception class name, an iOS NSError domain+code). Optional; for diagnostics only.
final
recoverable → bool
Whether the same operation can be retried.
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
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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