Class: JSONAPI::Utils::Exceptions::InternalServerError
- Inherits:
-
Exceptions::Error
- Object
- Exceptions::Error
- JSONAPI::Utils::Exceptions::InternalServerError
- Defined in:
- lib/jsonapi/utils/exceptions.rb
Instance Method Summary collapse
Instance Method Details
#code ⇒ Object
107 108 109 |
# File 'lib/jsonapi/utils/exceptions.rb', line 107 def code '500' end |
#errors ⇒ Object
111 112 113 114 115 116 117 118 |
# File 'lib/jsonapi/utils/exceptions.rb', line 111 def errors [JSONAPI::Error.new( code: code, status: :internal_server_error, title: 'Internal Server Error', detail: 'An internal error ocurred while processing the request.' )] end |