Exception: EML::REST::ForbiddenError
- Inherits:
-
EML::RESTError
- Object
- StandardError
- Error
- EML::RESTError
- EML::REST::ForbiddenError
- Defined in:
- lib/eml/error/rest/forbidden.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, response = nil) ⇒ ForbiddenError
constructor
A new instance of ForbiddenError.
Methods inherited from EML::RESTError
#http_body, #http_headers, #http_status, #url
Constructor Details
#initialize(message = nil, response = nil) ⇒ ForbiddenError
Returns a new instance of ForbiddenError.
13 14 15 16 17 |
# File 'lib/eml/error/rest/forbidden.rb', line 13 def initialize( = nil, response = nil) ||= response&.body&.fetch("message", nil) ||= "The user is not authorised to perform the action" super(, response) end |