Exception: SilverSpurs::ClientException
- Inherits:
-
Exception
- Object
- Exception
- SilverSpurs::ClientException
- Defined in:
- lib/silver_spurs/client/exceptions.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ ClientException
constructor
A new instance of ClientException.
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(, response=nil) @message = @response = response end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/silver_spurs/client/exceptions.rb', line 3 def @message end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/silver_spurs/client/exceptions.rb', line 3 def response @response end |