Exception: WhittakerTech::Midas::Ledger::UnbalancedEntryError
- Inherits:
-
StandardError
- Object
- StandardError
- WhittakerTech::Midas::Ledger::UnbalancedEntryError
- Defined in:
- app/models/whittaker_tech/midas/ledger/unbalanced_entry_error.rb
Overview
Raised when a Posting write (create, destroy, or reattaching its amount
via #set_amount) is attempted against an already-finalized Entry. This is
the defense-in-depth backstop for any write path that bypasses
Ledger::Entry.record! — see Ledger::Posting's before_create/
before_destroy guard (and the set_amount override).