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.



27
28
29
30
31
32
33
34
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 27

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.



25
26
27
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 25

def attribute
  @attribute
end

#validationObject (readonly)

Returns the value of attribute validation.



25
26
27
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 25

def validation
  @validation
end