Skip to main content

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

Removing Old Exception Classes

Lasse Nielsen writes:

We've changed some exception classes to errors with fancier names, but have so far retained a (somewhat) backwards compatible version of the exceptions. 

Now it's time for them to go. 

This affects: 
  • IllegalArgumentException
  • IndexOutOfRangeException
  • UnsupportedOperationException
  • NotImplementedException

The UnsupportedError and UnimplementedError classes also no longer have const constructors (those were only retained for backwards compatibility too).

Cheers!
As always, we invite you to join our Dart mailing list, ask questions on Stack Overflow, or file feature requests on dartbug.com.