StackTrace::Auto - a role for generating stack traces during instantiation
First, include StackTrace::Auto in a Moose or Mooclass...
# NOTE: Moo can also be used here instead of Moose
...then create an object of that class...
my $obj = Some::Class->new;
...and now you have a stack trace for the object's creation.
This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.
This attribute will contain an object representing the stack at the point when the error was generated and thrown. It must be an object performing the as_string method.
This attribute may be provided to use an alternate class for stack traces. The default is Devel::StackTrace.
In general, you will not need to think about this attribute.
This attribute is an arrayref of arguments to pass when building the stack trace. In general, you will not need to think about it.
Ricardo SIGNES <email@example.com>
Florian Ragwitz <firstname.lastname@example.org>
This software is copyright (c) 2022 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Throwable, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.