http://www.perlmonks.org?node_id=1003473


in reply to Custom DBD error message

Use HandleError. See DBI docs. You can set it to a sub which gets called when an error occurs. You can choose to ignore the error or even change the text.