Exception: ResoTransport::AccessDenied
- Inherits:
-
RequestError
- Object
- StandardError
- ResourceError
- RequestError
- ResoTransport::AccessDenied
- Defined in:
- lib/reso_transport/errors.rb
Instance Attribute Summary
Attributes inherited from RequestError
Attributes inherited from ResourceError
Instance Method Summary collapse
-
#initialize(request, response, resource = nil) ⇒ AccessDenied
constructor
A new instance of AccessDenied.
- #message ⇒ Object
Methods inherited from ResourceError
Constructor Details
#initialize(request, response, resource = nil) ⇒ AccessDenied
Returns a new instance of AccessDenied.
65 66 67 68 |
# File 'lib/reso_transport/errors.rb', line 65 def initialize(request, response, resource = nil) @reason = response.reason_phrase super(request, response, resource) end |
Instance Method Details
#message ⇒ Object
70 71 72 |
# File 'lib/reso_transport/errors.rb', line 70 def "Access denied: #{@reason}" end |