Class: LedgerSync::Ledgers::TestLedger::Util::OperationErrorParser::GenericMatcher

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

Instance Attribute Summary

Attributes inherited from ErrorMatcher

#error, #message

Instance Method Summary collapse

Methods inherited from ErrorMatcher

#body, #code, #detail, #error_message, #initialize

Constructor Details

This class inherits a constructor from LedgerSync::Ledgers::TestLedger::Util::ErrorMatcher

Instance Method Details

#error_classObject



55
56
57
# File 'lib/ledger_sync/test/support/test_ledger/util/operation_error_parser.rb', line 55

def error_class
  Error::OperationError
end

#match?Boolean

Returns:

  • (Boolean)


63
64
65
# File 'lib/ledger_sync/test/support/test_ledger/util/operation_error_parser.rb', line 63

def match?
  true
end

#output_messageObject



59
60
61
# File 'lib/ledger_sync/test/support/test_ledger/util/operation_error_parser.rb', line 59

def output_message
  "Something went wrong: #{error_message}"
end