Net::DRI::Exception(3) Class to store all exceptions inside Net::DRI

SYNOPSIS


my $s=Net::DRI::Exception->new(0,'area',500,'message');
die($s);
## OR
Net::DRI::Exception->die(0,'area',500,'message');
$s->is_error(); ## gives 0 or 1, first argument of new/die
## (internal error that should not happen are 1, others are 0)
$s->area(); ## gives back the area (second argument of new/die)
$s->code(); ## gives back the code (third argument of new/die)
$s->msg(); ## gives back the message (fourth argument of new/die)
$s->as_string(); ## gives back a nicely formatted full backtrace

SUPPORT

For now, support questions should be sent to:

<[email protected]>

Please also see the SUPPORT file in the distribution.

AUTHOR

Patrick Mevzek, <[email protected]>

COPYRIGHT

Copyright (c) 2005,2007,2008,2009 Patrick Mevzek <[email protected]>. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

See the LICENSE file that comes with this distribution for more details.