Class: LedgerSync::QuickBooksOnline::Util::OperationErrorParser::NotFoundMatcher
- Inherits:
-
ErrorMatcher
- Object
- ErrorMatcher
- LedgerSync::QuickBooksOnline::Util::OperationErrorParser::NotFoundMatcher
show all
- Defined in:
- lib/ledger_sync/quickbooks_online/util/operation_error_parser.rb
Instance Attribute Summary
Attributes inherited from ErrorMatcher
#error, #message
Instance Method Summary
collapse
#body, #code, #detail, #error_message, #initialize, #parsed_body
Instance Method Details
#error_class ⇒ Object
25
26
27
|
# File 'lib/ledger_sync/quickbooks_online/util/operation_error_parser.rb', line 25
def error_class
Error::OperationError::NotFoundError
end
|
#match? ⇒ Boolean
33
34
35
36
|
# File 'lib/ledger_sync/quickbooks_online/util/operation_error_parser.rb', line 33
def match?
code == 610 ||
message.include?('object not found')
end
|
#output_message ⇒ Object
29
30
31
|
# File 'lib/ledger_sync/quickbooks_online/util/operation_error_parser.rb', line 29
def output_message
"Unable to find in ledger with: #{error_message}"
end
|