Method: Thrift::ProtocolException#initialize

Defined in:
lib/thrift/protocol/base_protocol.rb

#initialize(type = UNKNOWN, message = nil) ⇒ ProtocolException

Returns a new instance of ProtocolException.



36
37
38
39
# File 'lib/thrift/protocol/base_protocol.rb', line 36

def initialize(type=UNKNOWN, message=nil)
  super(message)
  @type = type
end