2 messages in com.mysql.lists.perlRe: Error Messages
FromSent OnAttachments
mark o' sullivan23 Oct 2003 07:17 
Jochen Wiedmann23 Oct 2003 08:05 
Subject:Re: Error Messages
From:Jochen Wiedmann (jo@ispsoft.de)
Date:10/23/2003 08:05:26 AM
List:com.mysql.lists.perl

mark o' sullivan wrote:

Anyone know is it possible to change error messages. Say in the following case: my $dbh = DBI->connect('DBI:mysql:database=waitingroomdetail;host=localhost', $user, $password) or die $DBI::errstr;

Is it possible to change this $DBI::errstr message.

No. Of course you can throw another string based on $DBI::err, for example

or die MyErrorMessage($DBI::err);

Jochen