The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME Data::Processor::Error::Collection - Collect errors for Data::Processor

METHODS =head2 new

    my $errors = Data::Processor::Error::Collection->new();

add Adds an error. parameters: - message - path

add_error Adds an error object

add_collection Adds another error collection

any_error_contains Return true if any of the collected errors contains a given string. $error->collection->any_error_contains( string => "error_msg", field => "message", # any of the data fields of an error );

as_array Return all collected errors as an array.

count Return count of errors.