Exception: ThriftClient::Simple::ThriftException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/vendor/thrift_client/simple.rb

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ ThriftException

Returns a new instance of ThriftException.



215
216
217
# File 'lib/vendor/thrift_client/simple.rb', line 215

def initialize(reason)
  @reason = reason
end

Instance Method Details

#to_sObject



219
220
221
# File 'lib/vendor/thrift_client/simple.rb', line 219

def to_s
  "ThriftException(#{@reason.inspect})"
end