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


in reply to Error wrapping in an OO module

You might be interested in reading about exception objects, too.