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

Unified Diff: runtime/vm/exceptions.h

Issue 18531003: Cleanup VM error handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 7 years, 6 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
Index: runtime/vm/exceptions.h
diff --git a/runtime/vm/exceptions.h b/runtime/vm/exceptions.h
index b762627186b971e670d6ccfe80924cf24e251781..66de0a39dcca4822a37728441a3776e4729db440 100644
--- a/runtime/vm/exceptions.h
+++ b/runtime/vm/exceptions.h
@@ -37,10 +37,10 @@ class Exceptions : AllStatic {
const Class& cls,
const char* field_name,
const Object& value);
- static void SetLocationFields(const Instance& instance,
- const Class& cls,
- const Script& script,
- intptr_t location);
+ static intptr_t SetLocationFields(const Array& args,
+ intptr_t index,
+ const Script& script,
+ intptr_t location);
siva 2013/07/12 16:49:36 This method not needed anymore....
floitsch 2013/07/12 17:12:36 Done.
static void CreateAndThrowTypeError(intptr_t location,
const String& src_type_name,
const String& dst_type_name,
@@ -61,6 +61,11 @@ class Exceptions : AllStatic {
kIsolateSpawn,
kIsolateUnhandledException,
kFiftyThreeBitOverflowError,
+ kAssertion,
+ kCast,
+ kType,
+ kFallThrough,
+ kAbstractClassInstantiation,
};
static void ThrowByType(ExceptionType type, const Array& arguments);

Powered by Google App Engine
This is Rietveld 408576698