Tuesday, November 13, 2012

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).

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