e
This commit is contained in:
@@ -1,36 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: whwyy
|
||||
* Date: 2018/4/24 0024
|
||||
* Time: 17:32
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Class NotFindClassException
|
||||
* @package Kiri\Kiri\Exception
|
||||
*/
|
||||
class NotFindClassException extends \Exception
|
||||
{
|
||||
|
||||
/**
|
||||
* NotFindClassException constructor.
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
#[Pure] public function __construct(string $message = "", int $code = 0, Throwable $previous = null)
|
||||
{
|
||||
$message = "No class named `$message` was found, please check if the class name is correct";
|
||||
parent::__construct($message, 404, $previous);
|
||||
}
|
||||
|
||||
}
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: whwyy
|
||||
* Date: 2018/4/24 0024
|
||||
* Time: 17:32
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Class NotFindClassException
|
||||
* @package Kiri\Kiri\Exception
|
||||
*/
|
||||
class NotFindClassException extends \Exception
|
||||
{
|
||||
|
||||
/**
|
||||
* NotFindClassException constructor.
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
#[Pure] public function __construct(string $message = "", int $code = 0, Throwable $previous = null)
|
||||
{
|
||||
$message = "No class named `$message` was found, please check if the class name is correct";
|
||||
parent::__construct($message, 404, $previous);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user