Name
File::DataClass::TraitFor::TracingStacks - Provides a minimalist stacktrace
Synopsis
use Moose;
with 'File::DataClass::TraitFor::TracingStacks';
Version
This documents version v0.1.$Rev: 450 $ of File::DataClass::TraitFor::TracingStacks
Description
Provides a minimalist stacktrace
Configuration and Environment
Requires the ignore
and level
attributes in the consuming class
Defines the following attributes;
trace
-
An instance of the
trace_class
trace_args
-
A hash ref of arguments passed the
trace_class
constructor when thetrace
attribute is instantiated trace_class
-
A loadable class which defaults to Devel::StackTrace
Subroutines/Methods
BUILD
Forces the instantiation of the trace
attribute
build_leader
A builder for the leader
attribute defined in the consuming class
stacktrace
$lines = $self->stacktrace( $num_lines_to_skip );
Return the stack trace. Defaults to skipping zero lines of output
trace_frame_filter
Lifted from StackTrace::Auto this methods filters out frames from the raw stacktrace that are not of interest. If is very clever
Diagnostics
None
Dependencies
- namespace::autoclean
- List::Util
- Moose::Role
- MooseX::Types
- MooseX::Types::Moose
- MooseX::Types::LoadableClass
- Scalar::Util
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Acknowledgements
Larry Wall - For the Perl programming language
Author
Peter Flanigan, <pjfl@cpan.org>
License and Copyright
Copyright (c) 2013 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