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

Syccess::Error - Syccess error message

VERSION

version 0.104

DESCRIPTION

This class is used to store an error and will be given back on the call of "errors" in Syccess::Field or "errors" in Syccess::Result.

ATTRIBUTES

message

Contains the actual resulting error message. See "validator_message".

syccess_field

References to the Syccess::Field where this error comes from.

syccess_result

References to the Syccess::Result where this error comes from.

validator_message

This field contains the error message information given back by the validator. Syccess::Error uses this message with sprintf to generate the resulting error message in "message". As parameter for the sprintf you will get the label of the field. Alternative the validator can give back an ArrayRef which first element is the format for sprintf, while the rest of the ArrayRef is used as additional parameter for the formatting. This functionality is added to make localization of error messages easier, but its still not tested in a real environment, so changes might happen here.

With an own error trait given via "error_traits" in Syccess you can always override the way how the error messages are generated, if you are not happy with the given procedure.

SUPPORT

IRC

  Join irc.perl.org and msg Getty

Repository

  http://github.com/Getty/p5-syccess
  Pull request and additional contributors are welcome

Issue Tracker

  http://github.com/Getty/p5-syccess/issues

AUTHOR

Torsten Raudssus <torsten@raudss.us>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.