Exception: LedgerSync::ResourceError
- Defined in:
- lib/ledger_sync/error/resource_errors.rb
Direct Known Subclasses
Defined Under Namespace
Classes: MissingResourceError, ReferenceAssignmentError
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message:, resource:) ⇒ ResourceError
constructor
A new instance of ResourceError.
Constructor Details
#initialize(message:, resource:) ⇒ ResourceError
Returns a new instance of ResourceError.
54 55 56 57 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 54 def initialize(message:, resource:) @resource = resource super(message: ) end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
52 53 54 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 52 def resource @resource end |