Exception: LedgerSync::ResourceError
- Defined in:
- lib/ledger_sync/error/resource_errors.rb
Direct Known Subclasses
AttributeTypeError, MissingResourceError, ReferenceAssignmentError
Defined Under Namespace
Classes: AttributeTypeError, 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.
5 6 7 8 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 5 def initialize(message:, resource:) @resource = resource super(message: ) end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
3 4 5 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 3 def resource @resource end |