Class: Thrift::Processor::UnkwonFunctionProcessor

Inherits:
BaseProcessor
  • Object
show all
Defined in:
lib/thrift/processor.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ UnkwonFunctionProcessor

Returns a new instance of UnkwonFunctionProcessor.



393
394
395
# File 'lib/thrift/processor.rb', line 393

def initialize(name)
  super name, nil
end

Instance Method Details

#process(seqid, iprot, oprot) ⇒ Object



397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
# File 'lib/thrift/processor.rb', line 397

def process(seqid, iprot, oprot)
  iprot.skip(Types::STRUCT)
  iprot.read_message_end
  Processor.write_exception(
    ApplicationException.new(
      ApplicationException::UNKNOWN_METHOD,
      'Unknown function ' + @name,
    ),
    oprot,
    @name,
    seqid
  )

  false
end