File operation error with an optional original cause.
TxFileException
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| message | String | required | Notification text. |
| cause | Object? | null | Original platform error, if any. |
| Member / type / return | Meaning |
|---|---|
String toString() | Returns a readable error description. |
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
const error = TxFileException('Cannot read file');
print(error.message);
}