PPI::Exception (3)
Leading comments
Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) Standard preamble: ========================================================================
NAME
PPI::Exception - The PPI exception base classSYNOPSIS
use PPI::Exception; my $e = PPI::Exception->new( 'something happened' ); $e->throw; PPI::Exception->new( message => 'something happened' )->throw; PPI::Exception->throw( message => 'something happened' );
DESCRIPTION
All exceptions thrown from withinPPI
will be instances or derivations
of this class.
METHODS
new $message | message => $message, ...
Constructs and returns a new "PPI::Exception" object.A message for the exception can be passed, either as a string or as "message => $message". The message is available via the "message" method.
throw
If called on a "PPI::Exception" object, throws the object. If called on the class name, uses the arguments to construct a "PPI::Exception" and then throw it.Each time the object is thrown, information from the Perl <caller(0)> call is saved and made available via the "callers" method.
This method never returns.