Class: LedgerSync::Ledgers::TestLedger::Util::LedgerErrorParser::ThrottleMatcher
- Inherits:
-
ErrorMatcher
- Object
- ErrorMatcher
- LedgerSync::Ledgers::TestLedger::Util::LedgerErrorParser::ThrottleMatcher
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
#error_class ⇒ Object
11
12
13
|
# File 'lib/ledger_sync/test/support/test_ledger/util/ledger_error_parser.rb', line 11
def error_class
Error::LedgerError::ThrottleError
end
|
#match? ⇒ Boolean
19
20
21
22
|
# File 'lib/ledger_sync/test/support/test_ledger/util/ledger_error_parser.rb', line 19
def match?
message.include?('source=throttling policy') ||
message.include?('errorcode=003001')
end
|
#output_message ⇒ Object
15
16
17
|
# File 'lib/ledger_sync/test/support/test_ledger/util/ledger_error_parser.rb', line 15
def output_message
"Request throttle with: #{error_message}"
end
|