class THTP::ServerError

parent class for all errors during RPC execution; serializable as a Thrift::ApplicationException

Public Class Methods

type() click to toggle source

@return [Thrift::ApplicationExceptionType]

# File lib/thtp/errors.rb, line 11
def self.type
  Thrift::ApplicationException::UNKNOWN
end

Public Instance Methods

to_thrift() click to toggle source

@return [Thrift::ApplicationException] a serialisable Thrift exception

# File lib/thtp/errors.rb, line 16
def to_thrift
  Thrift::ApplicationException.new(self.class.type, message)
end