Class: PointException

Inherits:
Thrift::Exception
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb

Constant Summary collapse

CODE =
1
REASON =
2
EXTRA =
3
FIELDS =
{
  CODE => {:type => ::Thrift::Types::I32, :name => 'code', :enum_class => ::P0_a_e_a_b_re},
  REASON => {:type => ::Thrift::Types::STRING, :name => 'reason'},
  EXTRA => {:type => ::Thrift::Types::MAP, :name => 'extra', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



17599
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17599

def struct_fields; FIELDS; end

#validateObject



17601
17602
17603
17604
17605
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 17601

def validate
  unless @code.nil? || ::P0_a_e_a_b_re::VALID_VALUES.include?(@code)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field code!')
  end
end