Exception: ThriftClient::Simple::ThriftException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ThriftClient::Simple::ThriftException
- Defined in:
- lib/thrift_client/simple.rb
Instance Method Summary collapse
-
#initialize(reason) ⇒ ThriftException
constructor
A new instance of ThriftException.
- #to_s ⇒ Object
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_s ⇒ Object
197 198 199 |
# File 'lib/thrift_client/simple.rb', line 197 def to_s "ThriftException(#{@reason.inspect})" end |