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

WebService::Braintree::ValidationErrorCollection

PURPOSE

This class represents a collection of validation errors.

This class will only be created as part of a error response.

METHODS

deep_errors()

This returns a list of the errors for the underlying validation failures.

for()

This takes a target and returns a ValidationErrorCollection for that value (if it exists).

on()

This takes an attribute and returns an arrayref of the ValidationErrors for that attribute. If there aren't any, then this will return an empty arrayref.

TODO

Need to document what the attributes actually mean.