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

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

Issue 11415028: Remove NullPointerException. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added analyzer co19 expectations. 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/errors.dart
diff --git a/sdk/lib/core/errors.dart b/sdk/lib/core/errors.dart
index 7ce86289ebc5f80a42b5e5def06444527435701a..8963feb81e69395b268afdc48d61378b167434d8 100644
--- a/sdk/lib/core/errors.dart
+++ b/sdk/lib/core/errors.dart
@@ -25,6 +25,14 @@ class CastError implements Error {
}
/**
+ * Error thrown when attempting to throw [:null:].
+ */
+class NullThrownError implements Error {
+ const NullThrownError();
+ String toString() => "Throw of null.";
+}
+
+/**
* Error thrown when a function is passed an unacceptable argument.
*/
class ArgumentError implements Error {

Powered by Google App Engine
This is Rietveld 408576698