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

Side by Side Diff: sdk/lib/core/errors.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/core/double.dart ('k') | sdk/lib/core/expect.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) 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
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/core/double.dart ('k') | sdk/lib/core/expect.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698