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

Attributes inherited from LedgerSync::Error

#message

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ValidationError.



29
30
31
32
33
34
35
36
37
# File 'lib/ledger_sync/error/operation_errors.rb', line 29

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

  super(
    message: message,
    operation: operation
  )
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



26
27
28
# File 'lib/ledger_sync/error/operation_errors.rb', line 26

def attribute
  @attribute
end

#validationObject (readonly)

Returns the value of attribute validation.



26
27
28
# File 'lib/ledger_sync/error/operation_errors.rb', line 26

def validation
  @validation
end