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.



60
61
62
63
64
65
66
67
68
69
# File 'lib/ledger_sync/error/ledger_errors.rb', line 60

def initialize(*args, resource:, **keywords)
  @resource = resource

  super(
    *args,
    **{
      message: "Unknown URL format for #{resource.class}"
    }.merge(keywords)
  )
end

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource.



58
59
60
# File 'lib/ledger_sync/error/ledger_errors.rb', line 58

def resource
  @resource
end