Exception: LedgerSync::Error::AdaptorError::AdaptorValidationError

Inherits:
LedgerSync::Error::AdaptorError show all
Defined in:
lib/ledger_sync/error/adaptor_errors.rb

Instance Attribute Summary collapse

Attributes inherited from LedgerSync::Error::AdaptorError

#adaptor, #response

Attributes inherited from LedgerSync::Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(message:, adaptor:, attribute:, validation:) ⇒ AdaptorValidationError

Returns a new instance of AdaptorValidationError.



31
32
33
34
35
36
37
38
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 31

def initialize(message:, adaptor:, attribute:, validation:)
  @attribute = attribute
  @validation = validation
  super(
    message: message,
    adaptor: adaptor,
  )
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



29
30
31
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 29

def attribute
  @attribute
end

#validationObject (readonly)

Returns the value of attribute validation.



29
30
31
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 29

def validation
  @validation
end