Setting the errorHandler