Exception: LedgerSync::Error::AdaptorError::UnknownURLFormat

Inherits:
LedgerSync::Error::AdaptorError show all
Defined in:
lib/ledger_sync/error/adaptor_errors.rb

Instance Attribute Summary collapse

Attributes inherited from LedgerSync::Error::AdaptorError

#adaptor, #response

Attributes inherited from LedgerSync::Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(*args, resource:, **keywords) ⇒ UnknownURLFormat

Returns a new instance of UnknownURLFormat.



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

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

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource.



59
60
61
# File 'lib/ledger_sync/error/adaptor_errors.rb', line 59

def resource
  @resource
end