NAME
Egg::Exception - Exception module for Egg.
SYNOPSIS
use Egg::Exception;
Egg::Error->throw('The error occurs.');
sub run {
my($e)= @_;
local $SIG{__DIE__}= sub { Egg::Error->throw(@_) };
eval {
$e->call_method;
};
if ($@) {
print STDERR "stack: ". $@->stacktrace;
}
}
METHODS
errstr
The error message is returned.
frames
Trace information is returned by the ARRAY reference.
as_string
The error of the Carp style is returned.
stacktrace
The error message and trace information are assembled and it returns it.
SEE ALSO
Devel::StackTrace, Egg::Release,
AUTHOR
Masatoshi Mizuno, <mizuno@bomcity.com>
COPYRIGHT AND LICENSE
Copyright (C) 2007 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.