chore: complete update
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Router\Exceptions;
|
||||
|
||||
use App\Framework\Exception\FrameworkException;
|
||||
|
||||
final class ParameterResolutionException extends FrameworkException
|
||||
{
|
||||
|
||||
/**
|
||||
* @param string $string
|
||||
* @param int $int
|
||||
* @param \Exception|ReflectionException $e
|
||||
*/
|
||||
public function __construct(string $string, int $int, \Throwable $e) {
|
||||
parent::__construct($string, $int, $e);
|
||||
}
|
||||
}
|
||||
23
src/Framework/Router/Exceptions/UnknownResultException.php
Normal file
23
src/Framework/Router/Exceptions/UnknownResultException.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Router\Exceptions;
|
||||
|
||||
use App\Framework\Exception\FrameworkException;
|
||||
|
||||
final class UnknownResultException extends FrameworkException
|
||||
{
|
||||
public function __construct(
|
||||
string $resultClass,
|
||||
int $code = 0,
|
||||
?\Throwable $previous = null
|
||||
) {
|
||||
parent::__construct(
|
||||
message: 'Unbekanntes Ergebnisobjekt: ' . $resultClass,
|
||||
code: $code,
|
||||
previous: $previous,
|
||||
context: ['resultClass' => $resultClass]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user