Methods
- B
- C
- F
- H
- N
- U
Instance Public methods
bad_request(errors = nil)
Link
Source: show
# File rhino/rhino/app/controllers/concerns/rhino/error_handling.rb 31 def bad_request(errors = nil) 32 render json: { errors: (errors || ['Bad request.']) }, 33 status: :bad_request 34 end
cors()
Link
Source: show
# File rhino/rhino/app/controllers/concerns/rhino/error_handling.rb 46 def cors 47 render json: {} 48 end
forbidden()
Link
Source: show
# File rhino/rhino/app/controllers/concerns/rhino/error_handling.rb 36 def forbidden 37 render json: { errors: ['Access denied.'] }, status: :forbidden 38 end
handle_uncaught_error(exception)
Link
Source: show
# File rhino/rhino/app/controllers/concerns/rhino/error_handling.rb 21 def handle_uncaught_error(exception) 22 logger.info("Internal server error#{exception.class} #{exception.message} #{exception.backtrace.join("\n")}") 23 render json: { errors: ['Internal server error.'] }, 24 status: :internal_server_error 25 end