Egg::Exception - The exception with stack trace is generated.
use Egg::Exception; Egg::Error->throw('The error occurs.'); or local $SIG{__DIE__}= sub { Egg::Error->throw(@_) }; die 'The error occurs.';
It is a module to vomit the message with stack trace when the exception is generated.
Constructor. This is internally called.
After the constructor is let pass, the exception is generated.
Egg::Error->throw( 'internal error.' );
Only trace information on the object is returned.
local $SIG{__DIE__}= sub { Egg::Error->throw(@_) }; eval{ ... code. }; if ($@) { die $@->stacktrace }
Trace information on the object is returned by the ARRAY reference.
local $SIG{__DIE__}= sub { Egg::Error->throw(@_) }; eval{ ... code. }; if ($@) { die join "\n", @{$@->frames} }
as_string of "Devel::StackTrace " is returned.
local $SIG{__DIE__}= sub { Egg::Error->throw(@_) }; eval{ ... code. }; if ($@) { die $@->as_string }
Only the exception message of the object is returned.
local $SIG{__DIE__}= sub { Egg::Error->throw(@_) }; eval{ ... code. }; if ($@) { die $@->errstr }
Egg::Release, Devel::StackTrace,
Masatoshi Mizuno, <lushe@cpan.org>
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
1 POD Error
The following errors were encountered while parsing the POD:
L<> starts or ends with whitespace
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.