class RockBooks::AccountNotFoundError
Attributes
code[RW]
journal_entry_context[RW]
Public Class Methods
new(code, journal_entry_context)
click to toggle source
Calls superclass method
# File lib/rock_books/errors/account_not_found_error.rb, line 9 def initialize(code, journal_entry_context) self.code = code self.journal_entry_context = journal_entry_context super(to_s) end
Public Instance Methods
to_s()
click to toggle source
# File lib/rock_books/errors/account_not_found_error.rb, line 16 def to_s ctx = journal_entry_context "Account code '#{code}' in journal '#{ctx.journal.short_name}', line ##{ctx.linenum} not found in chart of accounts. Line: '#{ctx.line}'" end