added docs for error-handler