Class: Salestation::Web::Responses::Error

Inherits:
Response
  • Object
show all
Defined in:
lib/salestation/web/responses.rb

Direct Known Subclasses

UnprocessableEntityError

Instance Method Summary collapse

Methods inherited from Response

with_code

Instance Method Details

#bodyObject



40
41
42
43
44
# File 'lib/salestation/web/responses.rb', line 40

def body
  # Merge into `base_error` to ensure standard fields are not overriden
  merge_not_nil(base_error || {}, :message, message)
    .merge(debug_message: debug_message)
end