Exception: LedgerSync::ResourceError::MissingResourceError
- Inherits:
-
LedgerSync::ResourceError
- Object
- StandardError
- Error
- LedgerSync::ResourceError
- LedgerSync::ResourceError::MissingResourceError
- Defined in:
- lib/ledger_sync/error/resource_errors.rb
Instance Attribute Summary collapse
-
#resource_external_id ⇒ Object
readonly
Returns the value of attribute resource_external_id.
-
#resource_type ⇒ Object
readonly
Returns the value of attribute resource_type.
Attributes inherited from LedgerSync::ResourceError
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message:, resource_type:, resource_external_id:) ⇒ MissingResourceError
constructor
A new instance of MissingResourceError.
Constructor Details
#initialize(message:, resource_type:, resource_external_id:) ⇒ MissingResourceError
Returns a new instance of MissingResourceError.
71 72 73 74 75 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 71 def initialize(message:, resource_type:, resource_external_id:) @resource_type = resource_type @resource_external_id = resource_external_id super(message: , resource: nil) end |
Instance Attribute Details
#resource_external_id ⇒ Object (readonly)
Returns the value of attribute resource_external_id.
69 70 71 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 69 def resource_external_id @resource_external_id end |
#resource_type ⇒ Object (readonly)
Returns the value of attribute resource_type.
69 70 71 |
# File 'lib/ledger_sync/error/resource_errors.rb', line 69 def resource_type @resource_type end |