Exception: LedgerSync::ResourceError::ReferenceAssignmentError
- Inherits:
-
LedgerSync::ResourceError
- Object
- StandardError
- Error
- LedgerSync::ResourceError
- LedgerSync::ResourceError::ReferenceAssignmentError
- Defined in:
- lib/ledger_sync/error/resource_errors.rb
Instance Attribute Summary
Attributes inherited from LedgerSync::ResourceError
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(attribute:, resource:, value:) ⇒ ReferenceAssignmentError
constructor
A new instance of ReferenceAssignmentError.
Constructor Details
#initialize(attribute:, resource:, value:) ⇒ ReferenceAssignmentError
Returns a new instance of ReferenceAssignmentError.
60 61 62 63 64 65 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 60 def initialize(attribute:, resource:, value:) resource_class = resource.class = "Attribute #{attribute} value for #{resource_class.name} should be a #{asdf}. Given: #{value.class}" super(message: , resource: resource) end |