Class: BotException

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

ERRORCODE =
1
REASON =
2
PARAMETERMAP =
3
FIELDS =
{
  ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => ::G_a_b_x_a_a_a},
  REASON => {:type => ::Thrift::Types::STRING, :name => 'reason'},
  PARAMETERMAP => {:type => ::Thrift::Types::MAP, :name => 'parameterMap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



4177
4178
4179
4180
4181
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 4177

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