Class: AuthException
- Inherits:
-
Thrift::Exception
- Object
- Thrift::Exception
- AuthException
- 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
- WEBAUTHDETAILS =
11
- FIELDS =
{ CODE => {:type => ::Thrift::Types::I32, :name => 'code', :enum_class => ::G_a_b_z0_a_b_h}, ALERTMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'alertMessage'}, WEBAUTHDETAILS => {:type => ::Thrift::Types::STRUCT, :name => 'webAuthDetails', :class => ::WebAuthDetails, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
6361 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6361 def struct_fields; FIELDS; end |
#validate ⇒ Object
6363 6364 6365 6366 6367 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6363 def validate unless @code.nil? || ::G_a_b_z0_a_b_h::VALID_VALUES.include?(@code) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field code!') end end |