Class: JSONAPI::Utils::Exceptions::InternalServerError

Inherits:
Exceptions::Error
  • Object
show all
Defined in:
lib/jsonapi/utils/exceptions.rb

Instance Method Summary collapse

Instance Method Details

#codeObject



16
# File 'lib/jsonapi/utils/exceptions.rb', line 16

def code; 500 end

#errorsObject



18
19
20
21
22
23
# File 'lib/jsonapi/utils/exceptions.rb', line 18

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