Exception: Stella::Client::ResponseError
- Defined in:
- lib/stella/client.rb
Instance Method Summary collapse
-
#initialize(k, m = nil) ⇒ ResponseError
constructor
A new instance of ResponseError.
- #message ⇒ Object
Constructor Details
#initialize(k, m = nil) ⇒ ResponseError
Returns a new instance of ResponseError.
190 191 192 |
# File 'lib/stella/client.rb', line 190 def initialize(k, m=nil) @kind, @msg = k, m end |
Instance Method Details
#message ⇒ Object
193 194 195 196 197 |
# File 'lib/stella/client.rb', line 193 def msg = "#{@kind}" msg << ": #{@msg}" unless @msg.nil? msg end |