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

Unified Diff: runtime/bin/socket.dart

Issue 10173024: Change the error handling in dart:io (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« no previous file with comments | « runtime/bin/process_impl.dart ('k') | runtime/bin/socket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/socket.dart
diff --git a/runtime/bin/socket.dart b/runtime/bin/socket.dart
index e8b53bd9664d9bbbb261e14c35848a341cae0a91..6c1b49de72023eb589f700e411cf0b33e570d452 100644
--- a/runtime/bin/socket.dart
+++ b/runtime/bin/socket.dart
@@ -18,7 +18,7 @@ interface ServerSocket default _ServerSocket {
/**
* The error handler gets called when a socket error occurs.
*/
- void set onError(void callback(Exception e));
+ void set onError(void callback(e));
/**
* Returns the port used by this socket.
@@ -89,7 +89,7 @@ interface Socket extends Hashable default _Socket {
/**
* The error handler gets called when a socket error occurs.
*/
- void set onError(void callback(Exception e));
+ void set onError(void callback(e));
/**
* Returns input stream to the socket.
« no previous file with comments | « runtime/bin/process_impl.dart ('k') | runtime/bin/socket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698