Exception: TreezorConnect::AlreadyCreatedError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/treezor_connect/errors.rb

Instance Attribute Summary collapse

Attributes inherited from ApiError

#errors, #status

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ AlreadyCreatedError

Returns a new instance of AlreadyCreatedError.



18
19
20
21
# File 'lib/treezor_connect/errors.rb', line 18

def initialize(response)
  @treezor_response = ::TreezorConnect::TreezorResponse.from_http_response(response)
  super('Treezor resource has already been created', {}, 303)
end

Instance Attribute Details

#objectObject

Returns the value of attribute object.



16
17
18
# File 'lib/treezor_connect/errors.rb', line 16

def object
  @object
end

#treezor_responseObject

Returns the value of attribute treezor_response.



16
17
18
# File 'lib/treezor_connect/errors.rb', line 16

def treezor_response
  @treezor_response
end