Exception: Bugsink::Client::ClientError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bugsink/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code: nil, response: nil) ⇒ ClientError

Returns a new instance of ClientError.



16
17
18
19
20
# File 'lib/bugsink/client.rb', line 16

def initialize(message, code: nil, response: nil)
  super(message)
  @code = code
  @response = response
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



14
15
16
# File 'lib/bugsink/client.rb', line 14

def code
  @code
end

#responseObject (readonly)

Returns the value of attribute response.



14
15
16
# File 'lib/bugsink/client.rb', line 14

def response
  @response
end