Bio-NEXUS
view release on metacpan or search on metacpan
lib/Bio/NEXUS/Util/Exceptions.pm view on Meta::CPAN
my $class = shift;
my %args = @_;
my $self = {
'error' => $args{'error'},
'description' => $args{'description'},
'trace' => Bio::NEXUS::Util::StackTrace->new,
'time' => CORE::time(),
'pid' => $$,
'uid' => $<,
'euid' => $>,
'gid' => $(,
'egid' => $),
};
return bless $self, $class;
}
sub as_string {
my $self = shift;
my $error = $self->error;
my $description = $self->description;
my $class = ref $self;
my $trace = join "\n", map { "STACK: $_" } split '\n', $self->trace->as_string;
( run in 0.534 second using v1.01-cache-2.11-cpan-5735350b133 )