Class: SecondaryPwlessLoginException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- SecondaryPwlessLoginException
- 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
- ALERTMESSAGE =
2
- FIELDS =
{ CODE => {:type => ::Thrift::Types::I32, :name => 'code', :enum_class => ::G_a_b_z0_a_c_a_e}, ALERTMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'alertMessage'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
7002 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7002 def struct_fields; FIELDS; end |
#validate ⇒ Object
7004 7005 7006 7007 7008 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7004 def validate unless @code.nil? || ::G_a_b_z0_a_c_a_e::VALID_VALUES.include?(@code) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field code!') end end |