Exception: LedgerSync::ResourceError::MissingResourceError

Inherits:
LedgerSync::ResourceError show all
Defined in:
lib/ledger_sync/error/resource_errors.rb

Instance Attribute Summary collapse

Attributes inherited from LedgerSync::ResourceError

#resource

Attributes inherited from Error

#message

Instance Method Summary collapse

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: message, resource: nil)
end

Instance Attribute Details

#resource_external_idObject (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_typeObject (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