Class: Thrift::Processor::UnkwonFunctionProcessor
- Inherits:
-
BaseProcessor
- Object
- BaseProcessor
- Thrift::Processor::UnkwonFunctionProcessor
- Defined in:
- lib/thrift/processor.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ UnkwonFunctionProcessor
constructor
A new instance of UnkwonFunctionProcessor.
- #process(seqid, iprot, oprot) ⇒ Object
Constructor Details
#initialize(name) ⇒ UnkwonFunctionProcessor
Returns a new instance of UnkwonFunctionProcessor.
396 397 398 |
# File 'lib/thrift/processor.rb', line 396 def initialize(name) super name, nil end |
Instance Method Details
#process(seqid, iprot, oprot) ⇒ Object
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 |
# File 'lib/thrift/processor.rb', line 400 def process(seqid, iprot, oprot) iprot.skip(Types::STRUCT) iprot. write_exception( ApplicationException.new( ApplicationException::UNKNOWN_METHOD, 'Unknown function ' + @name, ), oprot, @name, seqid ) false end |