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

Side by Side Diff: sdk/lib/io/websocket.dart

Issue 16123036: Clean up dart:io exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/io/socket.dart ('k') | tests/standalone/io/directory_error_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io; 5 part of dart.io;
6 6
7 /** 7 /**
8 * Web socket status codes used when closing a web socket connection. 8 * Web socket status codes used when closing a web socket connection.
9 */ 9 */
10 abstract class WebSocketStatus { 10 abstract class WebSocketStatus {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 /** 147 /**
148 * Sends data from a stream on web socket connection. Each data event from 148 * Sends data from a stream on web socket connection. Each data event from
149 * [stream] will be send as a single WebSocket frame. The data from [stream] 149 * [stream] will be send as a single WebSocket frame. The data from [stream]
150 * must be either [:String:]s, or [:List<int>:]s holding bytes. 150 * must be either [:String:]s, or [:List<int>:]s holding bytes.
151 */ 151 */
152 Future addStream(Stream stream); 152 Future addStream(Stream stream);
153 } 153 }
154 154
155 155
156 class WebSocketException implements Exception { 156 class WebSocketException implements IOException {
157 const WebSocketException([String this.message = ""]); 157 const WebSocketException([String this.message = ""]);
158 String toString() => "WebSocketException: $message"; 158 String toString() => "WebSocketException: $message";
159 final String message; 159 final String message;
160 } 160 }
OLDNEW
« no previous file with comments | « sdk/lib/io/socket.dart ('k') | tests/standalone/io/directory_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698