Class: ChannelException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- ChannelException
- 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
- PARAMETERMAP =
3
- FIELDS =
{ CODE => {:type => ::Thrift::Types::I32, :name => 'code', :enum_class => ::P0_a_e_a_b_p5}, REASON => {:type => ::Thrift::Types::STRING, :name => 'reason'}, PARAMETERMAP => {:type => ::Thrift::Types::MAP, :name => 'parameterMap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
13121 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13121 def struct_fields; FIELDS; end |
#validate ⇒ Object
13123 13124 13125 13126 13127 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 13123 def validate unless @code.nil? || ::P0_a_e_a_b_p5::VALID_VALUES.include?(@code) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field code!') end end |