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

Unified Diff: runtime/vm/exceptions.cc

Issue 10977078: Rename CastException to CastError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Now without the TODO. Created 8 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/exceptions.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/exceptions.cc
diff --git a/runtime/vm/exceptions.cc b/runtime/vm/exceptions.cc
index 2706ebc850f012aa83bcec29922511f46741d796..4f459f8467221b7c79713da5eb3635a5ea22d9c2 100644
--- a/runtime/vm/exceptions.cc
+++ b/runtime/vm/exceptions.cc
@@ -18,7 +18,7 @@ DEFINE_FLAG(bool, print_stacktrace_at_throw, false,
"Prints a stack trace everytime a throw occurs.");
-const char* Exceptions::kCastExceptionDstName = "type cast";
+const char* Exceptions::kCastErrorDstName = "type cast";
// Iterate through the stack frames and try to find a frame with an
@@ -256,11 +256,11 @@ void Exceptions::CreateAndThrowTypeError(intptr_t location,
const String& dst_type_name,
const String& dst_name,
const String& malformed_error) {
- // Allocate a new instance of TypeError or CastException.
+ // Allocate a new instance of TypeError or CastError.
Instance& type_error = Instance::Handle();
Class& cls = Class::Handle();
- if (dst_name.Equals(kCastExceptionDstName)) {
- type_error = NewInstance("CastExceptionImplementation");
+ if (dst_name.Equals(kCastErrorDstName)) {
+ type_error = NewInstance("CastErrorImplementation");
cls = type_error.clazz();
cls = cls.SuperClass();
} else {
« no previous file with comments | « runtime/vm/exceptions.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698