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

Unified Diff: runtime/lib/error.dart

Issue 8294005: Rename class AssertError to AssertionError in the VM (fix issue 119). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 2 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/lib/error.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/error.dart
===================================================================
--- runtime/lib/error.dart (revision 457)
+++ runtime/lib/error.dart (working copy)
@@ -4,13 +4,13 @@
// Errors are created and thrown by DartVM only.
// Changes here should also be reflected in corelib/error.dart as well
-class AssertError {
- factory AssertError._uninstantiable() {
+class AssertionError {
+ factory AssertionError._uninstantiable() {
throw const UnsupportedOperationException(
- "AssertError can only be allocated by the VM");
+ "AssertionError can only be allocated by the VM");
}
static throwNew(int assertionStart, int assertionEnd)
- native "AssertError_throwNew";
+ native "AssertionError_throwNew";
String toString() {
return "Failed assertion: '$failedAssertion' is not true " +
"in $url at line $line, column $column.";
@@ -21,7 +21,7 @@
final int column;
}
-class TypeError extends AssertError {
+class TypeError extends AssertionError {
factory TypeError._uninstantiable() {
throw const UnsupportedOperationException(
"TypeError can only be allocated by the VM");
« no previous file with comments | « runtime/lib/error.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698