Skip to content

Commit 90dbbf5

Browse files
committed
chore: Overrides toString for CloudException types.
1 parent ea347a0 commit 90dbbf5

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

packages/celest_core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.1
2+
3+
- Overrides `toString` for `CloudException` types.
4+
15
## 0.2.0
26

37
- Bumps minimum Dart SDK to 3.3

packages/celest_core/lib/src/exception/cloud_exception.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ class BadRequestException implements CloudException {
1515

1616
@override
1717
final String message;
18+
19+
@override
20+
String toString() => 'BadRequestException: $message';
1821
}
1922

2023
/// {@template celest_core.exception.internal_server_exception}
@@ -29,4 +32,7 @@ class InternalServerException implements CloudException {
2932

3033
@override
3134
final String message;
35+
36+
@override
37+
String toString() => 'InternalServerException: $message';
3238
}

packages/celest_core/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: celest_core
22
description: Celest types and utilities shared between the client and the cloud.
3-
version: 0.2.0
3+
version: 0.2.1
44
homepage: https://celest.dev
55
repository: https://github.com/celest-dev/celest/tree/main/packages/celest_core
66

0 commit comments

Comments
 (0)