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.



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.read_message_end
  write_exception(
    ApplicationException.new(
      ApplicationException::UNKNOWN_METHOD,
      'Unknown function ' + @name,
    ),
    oprot,
    @name,
    seqid
  )

  false
end