Returns true if the exception is the same as E. Otherwise, false is returned.
true
exception
E
false
bool exceptionEquals(Exception exception) { return exception is E; }