Class: ThingsException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- ThingsException
- 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
- FIELDS =
{ CODE => {:type => ::Thrift::Types::I32, :name => 'code', :enum_class => ::G_a_b_e1_a_a_m0}, REASON => {:type => ::Thrift::Types::STRING, :name => 'reason'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
5194 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 5194 def struct_fields; FIELDS; end |
#validate ⇒ Object
5196 5197 5198 5199 5200 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 5196 def validate unless @code.nil? || ::G_a_b_e1_a_a_m0::VALID_VALUES.include?(@code) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field code!') end end |