Class: LedgerSync::Ledgers::TestLedger::Util::OperationErrorParser::ValidationError

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



41
42
43
# File 'lib/ledger_sync/test/support/test_ledger/util/operation_error_parser.rb', line 41

def error_class
  Error::OperationError::LedgerValidationError
end

#match?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'lib/ledger_sync/test/support/test_ledger/util/operation_error_parser.rb', line 49

def match?
  code == 6080
end

#output_messageObject



45
46
47
# File 'lib/ledger_sync/test/support/test_ledger/util/operation_error_parser.rb', line 45

def output_message
  "Ledger object is not valid: #{error_message}"
end