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
29 |
# File 'lib/jsonapi/utils/exceptions.rb', line 29 def code; 500 end |
#errors ⇒ Object
31 32 33 34 35 36 |
# File 'lib/jsonapi/utils/exceptions.rb', line 31 def errors [JSONAPI::Error.new(code: 500, status: :internal_server_error, title: 'Internal Server Error', detail: 'An internal error ocurred while processing the request.')] end |