Exception: Tarantool::AuthenticationError

Inherits:
Error
  • Object
show all
Defined in:
tarantool-client/lib/tarantool/client/errors.rb

Overview

Server rejected the credentials.

Instance Attribute Summary collapse

Attributes inherited from Error

#deleted

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code: nil) ⇒ AuthenticationError

Returns a new instance of AuthenticationError.



24
25
26
27
# File 'tarantool-client/lib/tarantool/client/errors.rb', line 24

def initialize(message = nil, code: nil)
  super(message)
  @code = code
end

Instance Attribute Details

#code ⇒ Object (readonly)

Returns the value of attribute code.



22
23
24
# File 'tarantool-client/lib/tarantool/client/errors.rb', line 22

def code
  @code
end