| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 /** | 5 /** |
| 6 * Input is read from a given input stream. Such an input stream can | 6 * Input is read from a given input stream. Such an input stream can |
| 7 * be an endpoint, e.g., a socket or a file, or another input stream. | 7 * be an endpoint, e.g., a socket or a file, or another input stream. |
| 8 * Multiple input streams can be chained together to operate collaboratively | 8 * Multiple input streams can be chained together to operate collaboratively |
| 9 * on a given input. | 9 * on a given input. |
| 10 */ | 10 */ |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 /** | 100 /** |
| 101 * Sets the handler that gets called when the underlying | 101 * Sets the handler that gets called when the underlying |
| 102 * communication channel gets into some kind of error situation. | 102 * communication channel gets into some kind of error situation. |
| 103 */ | 103 */ |
| 104 void set errorHandler(void callback()); | 104 void set errorHandler(void callback()); |
| 105 } | 105 } |
| 106 | 106 |
| 107 | 107 |
| 108 class StreamException implements Exception { | 108 class StreamException implements Exception { |
| 109 const StreamException([String msg = ""]) : message = msg; | 109 const StreamException([String this.message = ""]); |
| 110 String toString() => "StreamException: $message"; | 110 String toString() => "StreamException: $message"; |
| 111 final String message; | 111 final String message; |
| 112 } | 112 } |
| OLD | NEW |