1 | | | import 'dart:convert'; |
2 | | |
|
3 | | | import 'package:cancelation_token/cancelation_token.dart'; |
4 | | |
|
5 | | | import 'squadron_error.dart'; |
6 | | |
|
7 | | | class TaskCanceledException implements SquadronError, CanceledException { |
8 | | 4 | TaskCanceledException(String? message) : message = message ?? 'Task canceled'; |
9 | | |
|
10 | | | @override |
11 | | | final String message; |
12 | | |
|
13 | | 0 | @override |
14 | | 0 | StackTrace? get stackTrace => null; |
15 | | |
|
16 | | 0 | @override |
17 | | 0 | String toString() => jsonEncode(serialize()); |
18 | | |
|
19 | | 0 | @override |
20 | | 0 | List serialize() => throw UnimplementedError(); |
21 | | | } |