Solved new implementation of InvalidGetParameterException

This commit is contained in:
Kevin Frantz 2019-04-14 21:59:27 +02:00
parent 48a98cfc63
commit 679bfd2079
6 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@
namespace Infinito\Domain\ParameterManagement\Parameter; namespace Infinito\Domain\ParameterManagement\Parameter;
use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Constraints as Assert;
use Infinito\Exception\UnvalidGetParameterException; use Infinito\Exception\Validation\InvalidGetParameterException;
/** /**
* @author kevinfrantz * @author kevinfrantz
@ -13,7 +13,7 @@ final class FrameParameter extends AbstractParameter
/** /**
* @var bool The standart value which will be used * @var bool The standart value which will be used
*/ */
const STANDART_VALUE = true; private const STANDART_VALUE = true;
/** /**
* @var bool * @var bool
@ -48,6 +48,6 @@ final class FrameParameter extends AbstractParameter
return; return;
} }
} }
throw new UnvalidGetParameterException("It\'s not possible to set <<$value>> of type <<".$type.'>> for class <<'.get_class().'>>. Just 0 and 1 are allowed!'); throw new InvalidGetParameterException("It\'s not possible to set <<$value>> of type <<".$type.'>> for class <<'.get_class().'>>. Just 0 and 1 are allowed!');
} }
} }

View File

@ -4,7 +4,7 @@ namespace Infinito\Domain\ParameterManagement;
use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Validator\Validator\ValidatorInterface; use Symfony\Component\Validator\Validator\ValidatorInterface;
use Infinito\Exception\UnvalidGetParameterException; use Infinito\Exception\Validation\InvalidGetParameterException;
/** /**
* @author kevinfrantz * @author kevinfrantz

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Infinito\Exception; namespace Infinito\Exception\Validation;
/** /**
* @author kevinfrantz * @author kevinfrantz

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Infinito\Exception; namespace Infinito\Exception\Validation;
/** /**
* Thrown when an unvalid get paramter is used. * Thrown when an unvalid get paramter is used.

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Infinito\Exception; namespace Infinito\Exception\Validation;
/** /**
* @author kevinfrantz * @author kevinfrantz

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Infinito\Exception; namespace Infinito\Exception\Validation;
/** /**
* @author kevinfrantz * @author kevinfrantz