# Params::ValidationCompiler::Exceptions - Defines exceptions thrown by P... - perldoc - [phpMan]

## NAME
    [Params::ValidationCompiler::Exceptions](https://www.chedong.com/phpMan.php/perldoc/Params%3A%3AValidationCompiler%3A%3AExceptions/markdown) - Defines exceptions thrown by [Params::ValidationCompiler](https://www.chedong.com/phpMan.php/perldoc/Params%3A%3AValidationCompiler/markdown)

## VERSION
    version 0.31

## DESCRIPTION
    This module defines the following exceptions:

### [Params::ValidationCompiler::Exception::BadArguments](https://www.chedong.com/phpMan.php/perldoc/Params%3A%3AValidationCompiler%3A%3AException%3A%3ABadArguments/markdown)
    Exception thrown when @_ does not contain a hash or hashref.

### [Params::ValidationCompiler::Exception::Named::Extra](https://www.chedong.com/phpMan.php/perldoc/Params%3A%3AValidationCompiler%3A%3AException%3A%3ANamed%3A%3AExtra/markdown)
    Exception thrown when @_ contains unexpected extra named arguments.

### [Params::ValidationCompiler::Exception::Named::Required](https://www.chedong.com/phpMan.php/perldoc/Params%3A%3AValidationCompiler%3A%3AException%3A%3ANamed%3A%3ARequired/markdown)
    Exception thrown when a required named parameter is not passed.

### [Params::ValidationCompiler::Exception::Positional::Extra](https://www.chedong.com/phpMan.php/perldoc/Params%3A%3AValidationCompiler%3A%3AException%3A%3APositional%3A%3AExtra/markdown)
    Exception thrown when @_ contains unexpected extra arguments.

### [Params::ValidationCompiler::Exception::Positional::Required](https://www.chedong.com/phpMan.php/perldoc/Params%3A%3AValidationCompiler%3A%3AException%3A%3APositional%3A%3ARequired/markdown)
    Exception thrown when a required positional parameter is not passed.

### [Params::ValidationCompiler::Exception::ValidationFailedForMooseTypeConstraint](https://www.chedong.com/phpMan.php/perldoc/Params%3A%3AValidationCompiler%3A%3AException%3A%3AValidationFailedForMooseTypeConstraint/markdown)
    Exception thrown when a Moose type constraint check fails. This class provides the following
    methods:

   $e->parameter
    This returns a string describing the parameter, something like "The 'foo' parameter" or
    "Parameter #1".

   $e->value
    This is the value that failed the type constraint check.

   $e->type
    This is the type constraint object that did not accept the value.

## SUPPORT
    Bugs may be submitted at <<https://github.com/houseabsolute/Params-ValidationCompiler/issues>>.

## SOURCE
    The source code repository for Params-ValidationCompiler can be found at
    <<https://github.com/houseabsolute/Params-ValidationCompiler>>.

## AUTHOR
    Dave Rolsky <<autarch@urth.org>>

## COPYRIGHT AND LICENSE
    This software is Copyright (c) 2016 - 2023 by Dave Rolsky.

    This is free software, licensed under:

      The Artistic License 2.0 (GPL Compatible)

    The full text of the license can be found in the LICENSE file included with this distribution.

