exceptionEquals method

bool exceptionEquals(
  1. Exception exception
)

Returns true if the exception is the same as E. Otherwise, false is returned.

Implementation

bool exceptionEquals(Exception exception) {
  return exception is E;
}