Exception: PDC::JsonError

Inherits:
ResponseError show all
Defined in:
lib/pdc/http/errors.rb

Direct Known Subclasses

ResourceNotFound, TokenFetchFailed

Instance Attribute Summary

Attributes inherited from ResponseError

#response

Instance Method Summary collapse

Methods inherited from ResponseError

#initialize

Constructor Details

This class inherits a constructor from PDC::ResponseError

Instance Method Details

#messageObject



19
20
21
22
# File 'lib/pdc/http/errors.rb', line 19

def message
  summary = detail || response.body
  "Error: #{status} - #{summary}"
end