Skip to content

Commit

Permalink
chore: Overrides toString for CloudException types.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 committed Feb 29, 2024
1 parent ea347a0 commit 90dbbf5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/celest_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.2.1

- Overrides `toString` for `CloudException` types.

## 0.2.0

- Bumps minimum Dart SDK to 3.3
Expand Down
6 changes: 6 additions & 0 deletions packages/celest_core/lib/src/exception/cloud_exception.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ class BadRequestException implements CloudException {

@override
final String message;

@override
String toString() => 'BadRequestException: $message';
}

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

@override
final String message;

@override
String toString() => 'InternalServerException: $message';
}
2 changes: 1 addition & 1 deletion packages/celest_core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: celest_core
description: Celest types and utilities shared between the client and the cloud.
version: 0.2.0
version: 0.2.1
homepage: https://celest.dev
repository: https://github.com/celest-dev/celest/tree/main/packages/celest_core

Expand Down

0 comments on commit 90dbbf5

Please sign in to comment.