Exception: THTP::ServerError
- Defined in:
- lib/thtp/errors.rb
Overview
parent class for all errors during RPC execution; serializable as a Thrift::ApplicationException
Direct Known Subclasses
BadRequestError, BadResponseError, InternalError, SerializationError, ServerValidationError, UnknownRpcError
Class Method Summary collapse
Instance Method Summary collapse
-
#to_thrift ⇒ Thrift::ApplicationException
A serialisable Thrift exception.
Class Method Details
.type ⇒ Thrift::ApplicationExceptionType
11 12 13 |
# File 'lib/thtp/errors.rb', line 11 def self.type Thrift::ApplicationException::UNKNOWN end |
Instance Method Details
#to_thrift ⇒ Thrift::ApplicationException
Returns a serialisable Thrift exception.
16 17 18 |
# File 'lib/thtp/errors.rb', line 16 def to_thrift Thrift::ApplicationException.new(self.class.type, ) end |