Exception: ThriftClient::Simple::ThriftException

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

Instance Method Summary collapse

Constructor Details

#initialize(reason) ⇒ ThriftException

Returns a new instance of ThriftException.



193
194
195
# File 'lib/thrift_client/simple.rb', line 193

def initialize(reason)
  @reason = reason
end

Instance Method Details

#to_sObject



197
198
199
# File 'lib/thrift_client/simple.rb', line 197

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