Skip to content

Commit

Permalink
Update cupertino_web_socket.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Mar 8, 2024
1 parent f44d5e3 commit 5873182
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkgs/cupertino_http/lib/src/cupertino_web_socket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import 'package:web_socket/web_socket.dart';
import 'cupertino_api.dart';

/// An error occurred while connecting to the peer.
class ConnectionErrorException extends WebSocketException {
class ConnectionException extends WebSocketException {
final Error error;

ConnectionErrorException(super.message, this.error);
ConnectionException(super.message, this.error);

@override
String toString() => 'CupertinoErrorWebSocketException: $message $error';
Expand Down Expand Up @@ -47,7 +47,7 @@ class CupertinoWebSocket implements WebSocket {
if (!readyCompleter.isCompleted) {
if (error != null) {
readyCompleter.completeError(
ConnectionErrorException('connection ended unexpectedly', error));
ConnectionException('connection ended unexpectedly', error));
} else {
webSocket = CupertinoWebSocket._(task as URLSessionWebSocketTask, '');
readyCompleter.complete(webSocket);
Expand Down

0 comments on commit 5873182

Please sign in to comment.