NAME

Mail::BIMI::Role::HasError - Class to model an error

VERSION

version 2.20201019.2

DESCRIPTION

Role for handling validation errors

METHODS

serialize_errors()

Serialize the errors property for cache storage

deserialize_errors($value)

De-serialize the errors property for cache storage

add_error($code,$detail)

Add an error with the given code and optional detail to the current operation.

add_error_object($error)

Add an existing error object, or objects, to the current operation

error_codes

Return an ArrayRef of current error codes

filter_errors($error)

Return error(s) matching the given error code

REQUIRES

AUTHOR

Marc Bradshaw <marc@marcbradshaw.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by Marc Bradshaw.

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