Class: LedgerSync::QuickBooksOnline::Util::OperationErrorParser::ValidationError

Inherits:
ErrorMatcher
  • Object
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

Methods inherited from ErrorMatcher

#body, #code, #detail, #error_message, #initialize, #parsed_body

Constructor Details

This class inherits a constructor from LedgerSync::QuickBooksOnline::Util::ErrorMatcher

Instance Method Details

#error_classObject



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

Returns:

  • (Boolean)


48
49
50
# File 'lib/ledger_sync/quickbooks_online/util/operation_error_parser.rb', line 48

def match?
  code == 6080
end

#output_messageObject



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