Skip to content

Commit e965388

Browse files
committed
api: Add toString method to ApiRequestException
1 parent edf7c84 commit e965388

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/api/exception.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ sealed class ApiRequestException implements Exception {
1818
final String message;
1919

2020
ApiRequestException({required this.routeName, required this.message});
21+
22+
@override
23+
String toString() => message;
2124
}
2225

2326
/// An error returned through the Zulip server API.

0 commit comments

Comments
 (0)