Exception: Common::Client::Errors::ClientError

Inherits:
Error
  • Object
show all
Defined in:
lib/common/client/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, status = nil, body = nil) ⇒ ClientError

Returns a new instance of ClientError.



12
13
14
15
16
# File 'lib/common/client/errors.rb', line 12

def initialize(message = nil, status = nil, body = nil)
  super(message)
  @status = status
  @body = body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



10
11
12
# File 'lib/common/client/errors.rb', line 10

def body
  @body
end

#statusObject

Returns the value of attribute status.



10
11
12
# File 'lib/common/client/errors.rb', line 10

def status
  @status
end