Class: LedgerSync::Ledgers::TestLedger::Util::LedgerErrorParser::AuthenticationMatcher
- Inherits:
-
ErrorMatcher
- Object
- ErrorMatcher
- LedgerSync::Ledgers::TestLedger::Util::LedgerErrorParser::AuthenticationMatcher
show all
- Defined in:
- lib/ledger_sync/test/support/test_ledger/util/ledger_error_parser.rb
Instance Attribute Summary
Attributes inherited from ErrorMatcher
#error, #message
Instance Method Summary
collapse
#body, #code, #detail, #error_message, #initialize
Instance Method Details
#match? ⇒ Boolean
34
35
36
37
38
|
# File 'lib/ledger_sync/test/support/test_ledger/util/ledger_error_parser.rb', line 34
def match?
code == 3200 ||
message.include?('authenticationfailed') ||
message.include?('errorcode=003200')
end
|
#output_message ⇒ Object
30
31
32
|
# File 'lib/ledger_sync/test/support/test_ledger/util/ledger_error_parser.rb', line 30
def output_message
"Authentication Failed with: #{error_message}"
end
|