Help i need customize raise_exceptions of Stock Ledger

Hello everyone in the community, I currently have to customize the stock ledger error messages.

We have customized several Doctypes of the Stock module, in order to add more information according to the business. However, I need to modify the Stock Ledger raise_exceptions function, I need to add more information without altering the ERPNext code.

Extract of ERP Next: