Class: HomeException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- HomeException
- 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
- EXCEPTIONCODE =
1
- MESSAGE =
2
- FIELDS =
{ EXCEPTIONCODE => {:type => ::Thrift::Types::I32, :name => 'exceptionCode', :enum_class => ::G_a_k0_a_a_a_d_a}, MESSAGE => {:type => ::Thrift::Types::STRING, :name => 'message'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
4801 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 4801 def struct_fields; FIELDS; end |
#validate ⇒ Object
4803 4804 4805 4806 4807 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 4803 def validate unless @exceptionCode.nil? || ::G_a_k0_a_a_a_d_a::VALID_VALUES.include?(@exceptionCode) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field exceptionCode!') end end |