1StackTrace::Auto(3)   User Contributed Perl Documentation  StackTrace::Auto(3)
2
3
4

NAME

6       StackTrace::Auto - a role for generating stack traces during
7       instantiation
8

VERSION

10       version 0.200013
11

SYNOPSIS

13       First, include StackTrace::Auto in a Moose or Mooclass...
14
15         package Some::Class;
16         # NOTE: Moo can also be used here instead of Moose
17         use Moose;
18         with 'StackTrace::Auto';
19
20       ...then create an object of that class...
21
22         my $obj = Some::Class->new;
23
24       ...and now you have a stack trace for the object's creation.
25
26         print $obj->stack_trace->as_string;
27

ATTRIBUTES

29   stack_trace
30       This attribute will contain an object representing the stack at the
31       point when the error was generated and thrown.  It must be an object
32       performing the "as_string" method.
33
34   stack_trace_class
35       This attribute may be provided to use an alternate class for stack
36       traces.  The default is Devel::StackTrace.
37
38       In general, you will not need to think about this attribute.
39
40   stack_trace_args
41       This attribute is an arrayref of arguments to pass when building the
42       stack trace.  In general, you will not need to think about it.
43

AUTHORS

45       ·   Ricardo SIGNES <rjbs@cpan.org>
46
47       ·   Florian Ragwitz <rafl@debian.org>
48
50       This software is copyright (c) 2015 by Ricardo SIGNES.
51
52       This is free software; you can redistribute it and/or modify it under
53       the same terms as the Perl 5 programming language system itself.
54
55
56
57perl v5.32.0                      2020-07-28               StackTrace::Auto(3)
Impressum