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

Unified Diff: sdk/lib/core/errors.dart

Issue 2044753002: Make compile-time errors catchable (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: wip Created 4 years, 3 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
« runtime/vm/exceptions.cc ('K') | « runtime/vm/symbols.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/core/errors.dart
diff --git a/sdk/lib/core/errors.dart b/sdk/lib/core/errors.dart
index c11ea2e1a97da25e0c73490a216d7ec025492dc6..c9d85cafb7fd72787398c38658a5805ef1541e76 100644
--- a/sdk/lib/core/errors.dart
+++ b/sdk/lib/core/errors.dart
@@ -571,3 +571,11 @@ class CyclicInitializationError extends Error {
? "Reading static variable during its initialization"
: "Reading static variable '$variableName' during its initialization";
}
+
+
+class SyntaxError extends Error {
Lasse Reichstein Nielsen 2016/09/15 05:41:35 I have two objections here: 1. This will represen
hausner 2016/09/15 21:28:28 Renamed SyntaxError to _CompileTimeError. The clas
+ final String errorMsg;
+ SyntaxError(this.errorMsg);
+ String toString() => errorMsg;
+}
+
« runtime/vm/exceptions.cc ('K') | « runtime/vm/symbols.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698