Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: lib/src/exception.dart

Issue 1756613002: Add an IO implementation of WebSocketChannel. (Closed) Base URL: git@github.com:dart-lang/web_socket_channel.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/exception.dart
diff --git a/lib/src/exception.dart b/lib/src/exception.dart
index d06dc60e9db21eda7179cdcfeb77ff991b450890..47545ede721cd24b78f1d29f0027edee376c2782 100644
--- a/lib/src/exception.dart
+++ b/lib/src/exception.dart
@@ -11,7 +11,11 @@ class WebSocketChannelException implements Exception {
/// The exception that caused this one, if available.
final inner;
- WebSocketChannelException([this.message, this.inner]);
+ WebSocketChannelException([this.message]) : inner = null;
+
+ WebSocketChannelException.from(inner)
+ : message = inner.toString(),
+ inner = inner;
String toString() => message == null
? "WebSocketChannelException" :

Powered by Google App Engine
This is Rietveld 408576698