Exception: SilverSpurs::ClientException

Inherits:
Exception
  • Object
show all
Defined in:
lib/silver_spurs/client/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, response = nil) ⇒ ClientException

Returns a new instance of ClientException.



5
6
7
8
# File 'lib/silver_spurs/client/exceptions.rb', line 5

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

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/silver_spurs/client/exceptions.rb', line 3

def message
  @message
end

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/silver_spurs/client/exceptions.rb', line 3

def response
  @response
end