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

Side by Side Diff: runtime/vm/exceptions.cc

Issue 10850034: Rename BadNumberFormatException -> FormatException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/exceptions.h ('k') | samples/calculator/tape.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/exceptions.h" 5 #include "vm/exceptions.h"
6 6
7 #include "vm/dart_entry.h" 7 #include "vm/dart_entry.h"
8 #include "vm/debugger.h" 8 #include "vm/debugger.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 class_name = Symbols::New("NoSuchMethodException"); 397 class_name = Symbols::New("NoSuchMethodException");
398 break; 398 break;
399 case kClosureArgumentMismatch: 399 case kClosureArgumentMismatch:
400 library = Library::CoreLibrary(); 400 library = Library::CoreLibrary();
401 class_name = Symbols::New("ClosureArgumentMismatchException"); 401 class_name = Symbols::New("ClosureArgumentMismatchException");
402 break; 402 break;
403 case kObjectNotClosure: 403 case kObjectNotClosure:
404 library = Library::CoreLibrary(); 404 library = Library::CoreLibrary();
405 class_name = Symbols::New("ObjectNotClosureException"); 405 class_name = Symbols::New("ObjectNotClosureException");
406 break; 406 break;
407 case kBadNumberFormat: 407 case kFormat:
408 library = Library::CoreLibrary(); 408 library = Library::CoreLibrary();
409 class_name = Symbols::New("BadNumberFormatException"); 409 class_name = Symbols::New("FormatException");
410 break; 410 break;
411 case kStackOverflow: 411 case kStackOverflow:
412 library = Library::CoreLibrary(); 412 library = Library::CoreLibrary();
413 class_name = Symbols::New("StackOverflowException"); 413 class_name = Symbols::New("StackOverflowException");
414 break; 414 break;
415 case kOutOfMemory: 415 case kOutOfMemory:
416 library = Library::CoreLibrary(); 416 library = Library::CoreLibrary();
417 class_name = Symbols::New("OutOfMemoryException"); 417 class_name = Symbols::New("OutOfMemoryException");
418 break; 418 break;
419 case kWrongArgumentCount: 419 case kWrongArgumentCount:
(...skipping 15 matching lines...) Expand all
435 case kIsolateSpawn: 435 case kIsolateSpawn:
436 library = Library::IsolateLibrary(); 436 library = Library::IsolateLibrary();
437 class_name = Symbols::New("IsolateSpawnException"); 437 class_name = Symbols::New("IsolateSpawnException");
438 break; 438 break;
439 } 439 }
440 440
441 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments); 441 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments);
442 } 442 }
443 443
444 } // namespace dart 444 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/exceptions.h ('k') | samples/calculator/tape.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698