Class: SettingsException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- SettingsException
- 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
- PARAMETERS =
3
- FIELDS =
{ CODE => {:type => ::Thrift::Types::I32, :name => 'code', :enum_class => ::G_a_b_z0_a_f_g_n}, REASON => {:type => ::Thrift::Types::STRING, :name => 'reason'}, PARAMETERS => {:type => ::Thrift::Types::MAP, :name => 'parameters', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
10020 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10020 def struct_fields; FIELDS; end |
#validate ⇒ Object
10022 10023 10024 10025 10026 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10022 def validate unless @code.nil? || ::G_a_b_z0_a_f_g_n::VALID_VALUES.include?(@code) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field code!') end end |