Net::DRI::Exception(3pm)

Net::DRI::Exception3pm

Class to store all exceptions inside net::dri

Usage

 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.

Releases

Unchanged in 2 releases since Debian 6.0 (Squeeze).

  1. 6.0–7

Author

Patrick Mevzek, <[email protected]>

From libnet-dri-perl 0.96-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.