Skip to content

Commit e4982f0

Browse files
committed
api [nfc]: Mark ServerException sealed
This makes ApiRequestException transitively sealed, so that we can switch on it exhaustively.
1 parent 43a75f2 commit e4982f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/exception.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class NetworkException extends ApiRequestException {
9191
/// This should always represent either some kind of operational issue
9292
/// on the server, or a bug in the server where its responses don't
9393
/// agree with the documented API.
94-
abstract class ServerException extends ApiRequestException {
94+
sealed class ServerException extends ApiRequestException {
9595
final int httpStatus;
9696

9797
/// The response body, decoded as a JSON object.

0 commit comments

Comments
 (0)