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

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: Fixed VM bugs. 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 70278836096d55de80b6ce1f2bbcf9fb0892ca9b..afe3285c75fff68c8a9337a7af73174890464eb9 100644
--- a/sdk/lib/core/exceptions.dart
+++ b/sdk/lib/core/exceptions.dart
@@ -52,25 +52,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'";

Powered by Google App Engine
This is Rietveld 408576698