From 21eb5b1322845b0bf4d882f70b718367f7821580 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 11 Oct 2012 14:34:33 -0500 Subject: docs --- lib/MooseX/Validation/Doctypes/Errors.pm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/MooseX/Validation/Doctypes/Errors.pm b/lib/MooseX/Validation/Doctypes/Errors.pm index 7601855..9da6f91 100644 --- a/lib/MooseX/Validation/Doctypes/Errors.pm +++ b/lib/MooseX/Validation/Doctypes/Errors.pm @@ -106,6 +106,14 @@ has extra_data => ( predicate => 'has_extra_data', ); +=method TO_JSON + +Returns a hashref with keys of C and C, containing the +values of those attributes. This allows L to properly encode the error +object. + +=cut + sub TO_JSON { my $self = shift; @@ -115,6 +123,13 @@ sub TO_JSON { }; } +=method stringify + +Returns a human-readable string containing the error data in the object. This +is used for the stringification overload. + +=cut + sub stringify { my $self = shift; -- cgit v1.2.3