Perl base class for error handling
