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

Unified Diff: runtime/lib/error.dart

Issue 10882056: Unify AssertionError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move AssertionError to errors.dart. Created 8 years, 4 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/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/error.dart
diff --git a/runtime/lib/error.dart b/runtime/lib/error.dart
index 8b3318590b3b720f60c869954aea03ec27c39a9a..29a071a670d6e6f2c6fe998972cd3fdf4451a809 100644
--- a/runtime/lib/error.dart
+++ b/runtime/lib/error.dart
@@ -4,8 +4,8 @@
// Errors are created and thrown by DartVM only.
// Changes here should also be reflected in corelib/error.dart as well
-class AssertionError {
- factory AssertionError._uninstantiable() {
+class AssertionErrorImplementation extends AssertionError {
+ factory AssertionErrorImplementation._uninstantiable() {
throw const UnsupportedOperationException(
"AssertionError can only be allocated by the VM");
}
@@ -21,7 +21,7 @@ class AssertionError {
final int column;
}
-class TypeError extends AssertionError {
+class TypeError extends AssertionErrorImplementation {
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/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698