Exception: Viewpoint::EWS::Errors::ResponseError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ews/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response) ⇒ ResponseError

Returns a new instance of ResponseError.



23
24
25
26
# File 'lib/ews/errors.rb', line 23

def initialize(message, response)
  super(message)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



21
22
23
# File 'lib/ews/errors.rb', line 21

def response
  @response
end

Instance Method Details

#bodyObject



32
33
34
# File 'lib/ews/errors.rb', line 32

def body
  response.body
end

#statusObject



28
29
30
# File 'lib/ews/errors.rb', line 28

def status
  response.status
end