GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOOSEX::PARAMS::VALIDATE::EXCEPTION::VALIDATIONFAILEDFORTYPECONSTRAINT (3)

.ds Aq ’

NAME

MooseX::Params::Validate::Exception::ValidationFailedForTypeConstraint - Exception thrown when a type constraint check fails

CONTENTS

VERSION

version 0.21

SYNOPSIS



    use MooseX::Params::Validate qw( validated_list );
    use Scalar::Util qw( blessed );
    use Try::Tiny;

    try {
        my @p = validated_list( @_, foo => { isa => Str } );
    }
    catch {
        if (
            blessed $_
            && $_->isa(
                MooseX::Params::Validate::Exception::ValidationFailedForTypeConstraint
            )
            ) {
            ...;
        }
    };



DESCRIPTION

This class provides information about type constraint failures.

METHODS

This class provides the following methods:

CW$e->parameter()

This returns a string describing the parameter, something like The foo parameter or Parameter #1.

CW$e->value()

This is the value that failed the type constraint check.

CW$e->type()

This is the type constraint object that did not accept the value.

STRINGIFICATION

This object stringifies to a reasonable error message.

AUTHORS

o Stevan Little <stevan@cpan.org>
o Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 - 2015 by Stevan Little <stevan@cpan.org>.

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

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MOOSEX::PARAMS::VALIDATE::EXCEPTION::VALIDATIONFAILEDFORTYPECONSTRAINT (3) 2015-02-08

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.