Exception: LedgerSync::Error::OperationError::ValidationError

Inherits:
LedgerSync::Error::OperationError show all
Defined in:
lib/ledger_sync/error/operation_errors.rb

Instance Attribute Summary collapse

Attributes inherited from LedgerSync::Error::OperationError

#operation, #response

Attributes inherited from LedgerSync::Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(message:, attribute:, operation:, validation:, response: nil) ⇒ ValidationError

Returns a new instance of ValidationError.



34
35
36
37
38
39
40
41
42
43
# File 'lib/ledger_sync/error/operation_errors.rb', line 34

def initialize(message:, attribute:, operation:, validation:, response: nil)
  @attribute = attribute
  @validation = validation

  super(
    message: message,
    operation: operation,
    response: response
  )
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



31
32
33
# File 'lib/ledger_sync/error/operation_errors.rb', line 31

def attribute
  @attribute
end

#validationObject (readonly)

Returns the value of attribute validation.



31
32
33
# File 'lib/ledger_sync/error/operation_errors.rb', line 31

def validation
  @validation
end