The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

File::DataClass::Exception::TraitFor::ErrorLeader - Prepends a leader to the exception

Synopsis

   use Moose;

   with 'File::DataClass::Exception::TraitFor::ErrorLeader';

Version

This documents version v0.19.$Rev: 1 $ of File::DataClass::Exception::TraitFor::ErrorLeader

Description

Prepends a one line stack summary to the exception error message

Configuration and Environment

Requires the as_string method and the ignore attribute in the consuming class

Defines the following attributes;

leader

Set to the package and line number where the error should be reported

level

A positive integer which defaults to one. How many additional stack frames to pop before calculating the leader attribute

Modifies as_string in the consuming class. Prepends the leader attribute to the return value

Subroutines/Methods

None

Diagnostics

None

Dependencies

namespace::autoclean
Moose::Role
List::Util
MooseX::Types::Common::Numeric
MooseX::Types::Common::String

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