Skip to content

Commit 1cee094

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/api/exception.dart

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

2020
ApiRequestException({required this.routeName, required this.message});
21+
22+
@override
23+
String toString() {
24+
return message;
25+
}
2126
}
2227

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

0 commit comments

Comments
 (0)