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

Unified Diff: lib/compiler/implementation/lib/mock.dart

Issue 10896007: Expose remaining 'errors' in an unified dart:core. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move errors to errors.dart in dart2js. 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 | « lib/compiler/implementation/lib/js_helper.dart ('k') | runtime/lib/error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/mock.dart
diff --git a/lib/compiler/implementation/lib/mock.dart b/lib/compiler/implementation/lib/mock.dart
index 16fc2c05970ab1c90bfdb616a2aae35eb230fb52..01303d8ad18110ed8c5cd513462f0e23734acfa3 100644
--- a/lib/compiler/implementation/lib/mock.dart
+++ b/lib/compiler/implementation/lib/mock.dart
@@ -6,32 +6,6 @@
// TODO(ahe): Remove this file.
-class TypeError extends AssertionError {
- final String msg;
- const TypeError(String this.msg);
- String toString() => msg;
-}
-
-/** Thrown by the 'as' operator if the cast isn't valid. */
-class CastException implements TypeError {
- // TODO(lrn): Change actualType and expectedType to "Type" when reified
- // types are available.
- final Object actualType;
- final Object expectedType;
-
- CastException(this.actualType, this.expectedType);
-
- String toString() {
- return "CastException: Casting value of type $actualType to"
- " incompatible type $expectedType";
- }
-}
-
-class FallThroughError {
- const FallThroughError();
- String toString() => "Switch case fall-through.";
-}
-
// TODO(ahe): VM specfic exception?
class InternalError {
const InternalError(this._msg);
« no previous file with comments | « lib/compiler/implementation/lib/js_helper.dart ('k') | runtime/lib/error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698