Unexpected::TraitFor::TracingStacks - Provides a minimalist stacktrace
use Moo; with 'Unexpected::TraitFor::TracingStacks';
Provides a minimalist stacktrace
Modifies BUILD in the consuming class. Forces the instantiation of the trace attribute
BUILD
trace
Defines the following attributes;
An instance of the trace_class
trace_class
trace_args
A hash ref of arguments passed the trace_class constructor when the trace attribute is instantiated
A loadable class which defaults to Devel::StackTrace
$error_text_and_stack_trace = $self->message;
Returns the stringified object and a full stack trace
$lines = $self->stacktrace( $num_frames_to_skip );
Returns a minimalist stack trace. Defaults to skipping zero frames from the stack
Lifted from StackTrace::Auto this method filters out frames from the raw stacktrace that are not of interest. It is very clever
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Larry Wall - For the Perl programming language
Peter Flanigan, <pjfl@cpan.org>
<pjfl@cpan.org>
Copyright (c) 2015 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install Unexpected, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Unexpected
CPAN shell
perl -MCPAN -e shell install Unexpected
For more information on module installation, please visit the detailed CPAN module installation guide.