Exception: ResoTransport::AccessDenied

Inherits:
RequestError show all
Defined in:
lib/reso_transport/errors.rb

Instance Attribute Summary

Attributes inherited from RequestError

#request, #response

Attributes inherited from ResourceError

#resource

Instance Method Summary collapse

Methods inherited from ResourceError

#resource_name

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

#messageObject



70
71
72
# File 'lib/reso_transport/errors.rb', line 70

def message
  "Access denied: #{@reason}"
end