In between commit Exception refactoring

This commit is contained in:
Kevin Frantz
2019-04-14 23:37:30 +02:00
parent 679bfd2079
commit 9f179ead73
64 changed files with 256 additions and 241 deletions

View File

@@ -0,0 +1,10 @@
<?php
namespace Infinito\Exception\Attribut;
/**
* @author kevinfrantz
*/
final class AllreadyDefinedAttributException extends \Exception
{
}

View File

@@ -1,7 +0,0 @@
<?php
namespace Infinito\Exception;
final class AllreadyDefinedException extends \Exception
{
}

View File

@@ -1,11 +0,0 @@
<?php
namespace Infinito\Exception;
final class NotDefinedException extends \Exception
{
public function __construct($message = null)
{
parent::__construct($message);
}
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Infinito\Exception\Attribut;
/**
* @author kevinfrantz
*/
final class UndefinedAttributException extends \Exception
{
}

View File

@@ -1,9 +0,0 @@
<?php
namespace Infinito\Exception;
use Symfony\Component\HttpKernel\Exception\ConflictHttpException;
final class AllreadySetException extends ConflictHttpException
{
}

View File

@@ -0,0 +1,12 @@
<?php
namespace Infinito\Exception\Collection;
use Symfony\Component\HttpKernel\Exception\ConflictHttpException;
/**
* @author kevinfrantz
*/
final class ContainsElementException extends ConflictHttpException
{
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Infinito\Exception\Collection;
/**
* @author kevinfrantz
*/
final class NotPossibleSetElementException extends \Exception
{
}

View File

@@ -0,0 +1,12 @@
<?php
namespace Infinito\Exception\Collection;
use Symfony\Component\HttpKernel\Exception\ConflictHttpException;
/**
* @author kevinfrantz
*/
final class NotSetElementException extends ConflictHttpException
{
}

View File

@@ -1,9 +0,0 @@
<?php
namespace Infinito\Exception;
use Symfony\Component\HttpKernel\Exception\ConflictHttpException;
final class NotSetException extends ConflictHttpException
{
}

View File

@@ -1,10 +0,0 @@
<?php
namespace Infinito\Exception;
/**
* @author kevinfrantz
*/
class SetNotPossibleException extends \Exception
{
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Infinito\Exception\Core;
/**
* @author kevinfrantz
*/
final class NoDefaultClassCoreException extends \Exception
{
}

View File

@@ -1,10 +0,0 @@
<?php
namespace Infinito\Exception;
/**
* @author kevinfrantz
*/
final class NoDefaultClassException extends \Exception
{
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Infinito\Exception\Core;
/**
* @author kevinfrantz
*/
final class NoIdentityCoreException extends \Exception
{
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Infinito\Exception\Core;
/**
* @author kevinfrantz
*/
final class NotCorrectInstanceCoreException extends \TypeError
{
}

View File

@@ -1,7 +0,0 @@
<?php
namespace Infinito\Exception;
class NotCorrectInstanceException extends \TypeError
{
}

View File

@@ -1,10 +1,10 @@
<?php
namespace Infinito\Exception;
namespace Infinito\Exception\Deprecated;
/**
*
* @author kevinfrantz
*
* @deprecated
*/
final class NotProcessedException extends \Exception

View File

@@ -1,10 +0,0 @@
<?php
namespace Infinito\Exception;
/**
* @author kevinfrantz
*/
final class NoIdentityException extends \Exception
{
}

View File

@@ -1,6 +1,6 @@
<?php
namespace Infinito\Exception;
namespace Infinito\Exception\NotFound;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

View File

@@ -0,0 +1,10 @@
<?php
namespace Infinito\Exception\Permission;
/**
* @author kevinfrantz
*/
class NoPermissionException extends \Exception
{
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Infinito\Exception\Permission;
/**
* @author kevinfrantz
*/
final class NoSourcePermissionException extends NoPermissionException
{
}

View File

@@ -1,10 +0,0 @@
<?php
namespace Infinito\Exception;
/**
* @author kevinfrantz
*/
class NotSecureException extends \Exception
{
}

View File

@@ -1,9 +0,0 @@
<?php
namespace Infinito\Exception;
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
final class SourceAccessDeniedException extends AccessDeniedHttpException
{
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Infinito\Exception\Type;
/**
* @author kevinfrantz
*/
final class InvalidChoiceTypeException extends \Exception
{
}

View File

@@ -1,12 +0,0 @@
<?php
namespace Infinito\Exception;
/**
*
* @author kevinfrantz
*
*/
final class NoValidChoiceException extends \Exception
{
}

View File

@@ -5,6 +5,6 @@ namespace Infinito\Exception\Validation;
/**
* @author kevinfrantz
*/
class InvalidParameterException extends \Exception
final class FormInvalidException extends \Exception
{
}

View File

@@ -7,6 +7,6 @@ namespace Infinito\Exception\Validation;
*
* @author kevinfrantz
*/
class InvalidGetParameterException extends InvalidParameterException
final class GetParameterInvalidException extends ParameterInvalidException
{
}

View File

@@ -5,6 +5,6 @@ namespace Infinito\Exception\Validation;
/**
* @author kevinfrantz
*/
class InvalidByFormException extends \Exception
class ParameterInvalidException extends \Exception
{
}

View File

@@ -5,6 +5,6 @@ namespace Infinito\Exception\Validation;
/**
* @author kevinfrantz
*/
class InvalidValueException extends \Exception
final class ValueInvalidException extends \Exception
{
}