Class: LedgerSync::QuickBooksOnline::Util::OperationErrorParser::ValidationError
- Inherits:
-
ErrorMatcher
- Object
- ErrorMatcher
- LedgerSync::QuickBooksOnline::Util::OperationErrorParser::ValidationError
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
40
41
42
|
# File 'lib/ledger_sync/quickbooks_online/util/operation_error_parser.rb', line 40
def error_class
Error::OperationError::LedgerValidationError
end
|
#match? ⇒ Boolean
48
49
50
|
# File 'lib/ledger_sync/quickbooks_online/util/operation_error_parser.rb', line 48
def match?
code == 6080
end
|
#output_message ⇒ Object
44
45
46
|
# File 'lib/ledger_sync/quickbooks_online/util/operation_error_parser.rb', line 44
def output_message
"Ledger object is not valid: #{error_message}"
end
|