Exception: THTP::UnknownRpcError

Inherits:
ServerError show all
Defined in:
lib/thtp/errors.rb

Overview

Indicates a well-formatted request for an RPC that does not exist

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ServerError

#to_thrift

Constructor Details

#initialize(rpc) ⇒ UnknownRpcError

Returns a new instance of UnknownRpcError.

Parameters:

  • rpc (String)

    the RPC requested



42
43
44
# File 'lib/thtp/errors.rb', line 42

def initialize(rpc)
  super "Unknown RPC '#{rpc}'"
end

Class Method Details

.typeObject



37
38
39
# File 'lib/thtp/errors.rb', line 37

def self.type
  Thrift::ApplicationException::WRONG_METHOD_NAME
end