2c36db9b0a
Deprecates the class and makes it implement `Error` (more specifically `UnsupportedError`). Code throwing `IntegerDivisionByZeroException` should be migrated to throwing `unsupportedError` directly, code catching the exception class should start catching `UnsupportedError` immediately (or reconsider why they are catching at all). Integer division by zero also covers other ways that a double division can give a non-number result (any infinity or NaN result of the division prior to calling `truncate()` on the result, will cause `~/` to throw). Fixes #46776 Bug: https://github.com/dart-lang/sdk/issues/46776 Change-Id: Idf2657153dd16542e72c6ba921f587dd9fc9032a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208643 Reviewed-by: Nate Bosch <nbosch@google.com> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com>