If you check the documentation for your language carefully you will find
that there is always a method for dumping the contents of a message table
into a string. You should ensure that your application has the ability to
conditionally log this report - this will greatly aid tracing and debugging
problems in your system.