List:MySQL and Perl« Previous MessageNext Message »
From:Jochen Wiedmann Date:October 23 2003 3:05pm
Subject:Re: Error Messages
View as plain text  
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


Thread
Error Messagesmark o' sullivan23 Oct
  • Re: Error MessagesJochen Wiedmann23 Oct