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

Unified Diff: lib/coreimpl/exceptions.dart

Issue 11229003: Revert "Rename OutOfMemoryException to OutOfMemoryError." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « lib/coreimpl/corelib_impl_sources.gypi ('k') | runtime/lib/integers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/exceptions.dart
diff --git a/compiler/java/com/google/dart/compiler/resolver/SuperElement.java b/lib/coreimpl/exceptions.dart
similarity index 52%
copy from compiler/java/com/google/dart/compiler/resolver/SuperElement.java
copy to lib/coreimpl/exceptions.dart
index 0d3a69a5570446a040fa3ef203166ce323a15b9b..72559ba6e231a91abf191d6fb948706c4db13b1b 100644
--- a/compiler/java/com/google/dart/compiler/resolver/SuperElement.java
+++ b/lib/coreimpl/exceptions.dart
@@ -2,12 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-package com.google.dart.compiler.resolver;
-
-/**
- * Resolved element for a Dart 'super' expression.
- */
-public interface SuperElement extends Element {
-
- public ClassElement getClassElement();
+class ExceptionImplementation implements Exception {
+ final message;
+ const ExceptionImplementation([this.message]);
+ String toString() => (message == null) ? "Exception" : "Exception: $message";
}
« no previous file with comments | « lib/coreimpl/corelib_impl_sources.gypi ('k') | runtime/lib/integers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698