Class: PaymentException

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
DEBUGREASON =
2
SERVERDEFINEDMESSAGE =
3
ERRORDETAILMAP =
4
FIELDS =
{
  ERRORCODE => {:type => ::Thrift::Types::I32, :name => 'errorCode', :enum_class => ::G_a_b_z0_a_d_y0},
  DEBUGREASON => {:type => ::Thrift::Types::STRING, :name => 'debugReason'},
  SERVERDEFINEDMESSAGE => {:type => ::Thrift::Types::STRING, :name => 'serverDefinedMessage'},
  ERRORDETAILMAP => {:type => ::Thrift::Types::MAP, :name => 'errorDetailMap', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



7379
7380
7381
7382
7383
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 7379

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