Checks if the error handler can handle the error by runtimeType.
bool canHandle(final Object errorCatch) => errorTypes.any((errorType) => errorType == errorCatch.runtimeType);