Exception: LedgerSync::Error::LedgerError::UnknownURLFormat
- Inherits:
-
LedgerSync::Error::LedgerError
- Object
- StandardError
- LedgerSync::Error
- LedgerSync::Error::LedgerError
- LedgerSync::Error::LedgerError::UnknownURLFormat
- Defined in:
- lib/ledger_sync/error/ledger_errors.rb
Instance Attribute Summary collapse
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
Attributes inherited from LedgerSync::Error::LedgerError
Attributes inherited from LedgerSync::Error
Instance Method Summary collapse
-
#initialize(*args, resource:, **keywords) ⇒ UnknownURLFormat
constructor
A new instance of UnknownURLFormat.
Constructor Details
#initialize(*args, resource:, **keywords) ⇒ UnknownURLFormat
Returns a new instance of UnknownURLFormat.
56 57 58 59 60 61 62 63 |
# File 'lib/ledger_sync/error/ledger_errors.rb', line 56 def initialize(*args, resource:, **keywords) @resource = resource super( *args, message: "Unknown URL format for #{resource.class}", **keywords ) end |
Instance Attribute Details
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
54 55 56 |
# File 'lib/ledger_sync/error/ledger_errors.rb', line 54 def resource @resource end |