| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.core; | 5 part of dart.core; |
| 6 | 6 |
| 7 class Error { | 7 class Error { |
| 8 const Error(); | 8 const Error(); |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 "Tried calling: $_memberName($actualParameters)\n" | 189 "Tried calling: $_memberName($actualParameters)\n" |
| 190 "Found: $_memberName($formalParameters)"; | 190 "Found: $_memberName($formalParameters)"; |
| 191 } | 191 } |
| 192 } | 192 } |
| 193 } | 193 } |
| 194 | 194 |
| 195 | 195 |
| 196 /** | 196 /** |
| 197 * The operation was not allowed by the object. | 197 * The operation was not allowed by the object. |
| 198 * | 198 * |
| 199 * This [Error] is thrown when a class cannot implement | 199 * This [Error] is thrown when an instance cannot implement one of the methods |
| 200 * one of the methods in its signature. | 200 * in its signature. |
| 201 */ | 201 */ |
| 202 class UnsupportedError implements Error { | 202 class UnsupportedError implements Error { |
| 203 final String message; | 203 final String message; |
| 204 UnsupportedError(this.message); | 204 UnsupportedError(this.message); |
| 205 String toString() => "Unsupported operation: $message"; | 205 String toString() => "Unsupported operation: $message"; |
| 206 } | 206 } |
| 207 | 207 |
| 208 | 208 |
| 209 /** | 209 /** |
| 210 * Thrown by operations that have not been implemented yet. | 210 * Thrown by operations that have not been implemented yet. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 } | 249 } |
| 250 | 250 |
| 251 /** | 251 /** |
| 252 * Error thrown when a runtime error occurs. | 252 * Error thrown when a runtime error occurs. |
| 253 */ | 253 */ |
| 254 class RuntimeError implements Error { | 254 class RuntimeError implements Error { |
| 255 final message; | 255 final message; |
| 256 RuntimeError(this.message); | 256 RuntimeError(this.message); |
| 257 String toString() => "RuntimeError: $message"; | 257 String toString() => "RuntimeError: $message"; |
| 258 } | 258 } |
| OLD | NEW |