Methods
B
C
F
H
N
U
Instance Public methods
bad_request(errors = nil)
   # 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()
   # File rhino/rhino/app/controllers/concerns/rhino/error_handling.rb
46 def cors
47   render json: {}
48 end
forbidden()
   # 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)
   # 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
not_found()
   # File rhino/rhino/app/controllers/concerns/rhino/error_handling.rb
27 def not_found
28   render json: { errors: ['Not found.'] }, status: :not_found
29 end
unprocessable(errors = nil)
   # File rhino/rhino/app/controllers/concerns/rhino/error_handling.rb
40 def unprocessable(errors = nil)
41   render json: {
42     errors: (errors || ['Unprocessable request.'])
43   }, status: :unprocessable_entity
44 end