Class: LedgerSync::Ledgers::TestLedger::Util::ErrorParser

Inherits:
Object
  • Object
show all
Defined in:
lib/ledger_sync/test/support/test_ledger/util/error_parser.rb

Direct Known Subclasses

LedgerErrorParser, OperationErrorParser

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error:) ⇒ ErrorParser

Returns a new instance of ErrorParser.



12
13
14
# File 'lib/ledger_sync/test/support/test_ledger/util/error_parser.rb', line 12

def initialize(error:)
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



10
11
12
# File 'lib/ledger_sync/test/support/test_ledger/util/error_parser.rb', line 10

def error
  @error
end

Instance Method Details

#error_classObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/ledger_sync/test/support/test_ledger/util/error_parser.rb', line 16

def error_class
  raise NotImplementedError
end

#parseObject

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/ledger_sync/test/support/test_ledger/util/error_parser.rb', line 20

def parse
  raise NotImplementedError
end