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

Unified Diff: runtime/vm/exceptions.h

Issue 2044753002: Make compile-time errors catchable (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments 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
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/exceptions.h
diff --git a/runtime/vm/exceptions.h b/runtime/vm/exceptions.h
index e0a64c86f9d2efea5294a0d01467c41b7375b4ea..e85f100bc479e92fe649fd6743dcfa4273cf043b 100644
--- a/runtime/vm/exceptions.h
+++ b/runtime/vm/exceptions.h
@@ -15,6 +15,7 @@ class AbstractType;
class Array;
class DartFrameIterator;
class Error;
+class LanguageError;
class Instance;
class Integer;
class RawInstance;
@@ -60,6 +61,7 @@ class Exceptions : AllStatic {
kFallThrough,
kAbstractClassInstantiation,
kCyclicInitializationError,
+ kCompileTimeError,
};
static void ThrowByType(ExceptionType type, const Array& arguments);
@@ -72,6 +74,7 @@ class Exceptions : AllStatic {
const Integer& argument_value,
intptr_t expected_from,
intptr_t expected_to);
+ static void ThrowCompileTimeError(const LanguageError& error);
// Returns a RawInstance if the exception is successfully created,
// otherwise returns a RawError.
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698