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

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

Issue 11415028: Remove NullPointerException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments. Created 8 years, 1 month 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: sdk/lib/core/exceptions.dart
diff --git a/sdk/lib/core/exceptions.dart b/sdk/lib/core/exceptions.dart
index 61f3f89def79b09ac9016b15ec8100704051971a..ed16cf6c642c2c18ae2d1e9dc69dcd0d9708a8a9 100644
--- a/sdk/lib/core/exceptions.dart
+++ b/sdk/lib/core/exceptions.dart
@@ -40,25 +40,6 @@ class FormatException implements Exception {
}
-class NullPointerException implements Exception {
- const NullPointerException([this.functionName, this.arguments = const []]);
- String toString() {
- if (functionName == null) {
- return exceptionName;
- } else {
- return "$exceptionName : method: '$functionName'\n"
- "Receiver: null\n"
- "Arguments: $arguments";
- }
- }
-
- String get exceptionName => "NullPointerException";
-
- final String functionName;
- final List arguments;
-}
-
-
class IllegalJSRegExpException implements Exception {
const IllegalJSRegExpException(String this._pattern, String this._errmsg);
String toString() => "IllegalJSRegExpException: '$_pattern' '$_errmsg'";
« runtime/lib/regexp.cc ('K') | « sdk/lib/core/errors.dart ('k') | sdk/lib/core/map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698