Class: SecondAuthFactorPinCodeException

Inherits:
Thrift::Exception
  • Object
show all
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_a_a_c_a_a},
  ALERTMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'alertMessage'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



6298
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6298

def struct_fields; FIELDS; end

#validateObject



6300
6301
6302
6303
6304
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 6300

def validate
  unless @code.nil? || ::G_a_b_z0_a_a_a_c_a_a::VALID_VALUES.include?(@code)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field code!')
  end
end