Exception: LedgerSync::ResourceError

Inherits:
Error
  • Object
show all
Defined in:
lib/ledger_sync/error/resource_errors.rb

Defined Under Namespace

Classes: MissingResourceError, ReferenceAssignmentError

Instance Attribute Summary collapse

Attributes inherited from Error

#message

Instance Method Summary collapse

Constructor Details

#initialize(message:, resource:) ⇒ ResourceError

Returns a new instance of ResourceError.



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

def initialize(message:, resource:)
  @resource = resource
  super(message: message)
end

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource.



52
53
54
# File 'lib/ledger_sync/error/resource_errors.rb', line 52

def resource
  @resource
end