Exception: Stella::Client::ResponseError

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

Instance Method Summary collapse

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

#messageObject



193
194
195
196
197
# File 'lib/stella/client.rb', line 193

def message
  msg = "#{@kind}"
  msg << ": #{@msg}" unless @msg.nil?
  msg
end