Exception: LedgerSync::ResourceError

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

Defined Under Namespace

Classes: AttributeTypeError, 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.



5
6
7
8
# File 'lib/ledger_sync/error/resource_errors.rb', line 5

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

Instance Attribute Details

#resourceObject (readonly)

Returns the value of attribute resource.



3
4
5
# File 'lib/ledger_sync/error/resource_errors.rb', line 3

def resource
  @resource
end