Exception: LedgerSync::Error::LedgerError::UnknownURLFormat

Inherits:
LedgerSync::Error::LedgerError show all
Defined in:
lib/ledger_sync/error/ledger_errors.rb

Instance Attribute Summary collapse

Attributes inherited from LedgerSync::Error::LedgerError

#client, #response

Attributes inherited from LedgerSync::Error

#message

Instance Method Summary collapse

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

#resourceObject (readonly)

Returns the value of attribute resource.



54
55
56
# File 'lib/ledger_sync/error/ledger_errors.rb', line 54

def resource
  @resource
end