e
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Class AuthException
|
||||
* @package Kiri\Exception
|
||||
*/
|
||||
class AuthException extends \Exception
|
||||
{
|
||||
|
||||
/**
|
||||
* AuthException constructor.
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null)
|
||||
{
|
||||
parent::__construct($message, 4001, $previous);
|
||||
}
|
||||
|
||||
}
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Class AuthException
|
||||
* @package Kiri\Exception
|
||||
*/
|
||||
class AuthException extends \Exception
|
||||
{
|
||||
|
||||
/**
|
||||
* AuthException constructor.
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
public function __construct($message = "", $code = 0, Throwable $previous = null)
|
||||
{
|
||||
parent::__construct($message, 4001, $previous);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,35 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: whwyy
|
||||
* Date: 2018/4/25 0025
|
||||
* Time: 18:34
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Class ComponentException
|
||||
* @package Kiri\Kiri\Exception
|
||||
*/
|
||||
class ComponentException extends \Exception
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* ComponentException constructor.
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
public function __construct(string $message = "", int $code = 0, Throwable $previous = NULL)
|
||||
{
|
||||
parent::__construct($message, 5000, $previous);
|
||||
}
|
||||
|
||||
}
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: whwyy
|
||||
* Date: 2018/4/25 0025
|
||||
* Time: 18:34
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Class ComponentException
|
||||
* @package Kiri\Kiri\Exception
|
||||
*/
|
||||
class ComponentException extends \Exception
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* ComponentException constructor.
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
public function __construct(string $message = "", int $code = 0, Throwable $previous = NULL)
|
||||
{
|
||||
parent::__construct($message, 5000, $previous);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
/**
|
||||
* Class ConfigException
|
||||
* @package Kiri\Exception
|
||||
*/
|
||||
class ConfigException extends \Exception
|
||||
{
|
||||
|
||||
}
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
/**
|
||||
* Class ConfigException
|
||||
* @package Kiri\Exception
|
||||
*/
|
||||
class ConfigException extends \Exception
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
/**
|
||||
* Class InitException
|
||||
* @package Kiri\Exception
|
||||
*/
|
||||
class InitException extends \Exception
|
||||
{
|
||||
|
||||
}
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
/**
|
||||
* Class InitException
|
||||
* @package Kiri\Exception
|
||||
*/
|
||||
class InitException extends \Exception
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,35 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: whwyy
|
||||
* Date: 2018/4/24 0024
|
||||
* Time: 17:32
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Class NotFindClassException
|
||||
* @package Kiri\Kiri\Exception
|
||||
*/
|
||||
class NotFindPropertyException extends \Exception
|
||||
{
|
||||
|
||||
/**
|
||||
* NotFindClassException constructor.
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
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 Throwable;
|
||||
|
||||
/**
|
||||
* Class NotFindClassException
|
||||
* @package Kiri\Kiri\Exception
|
||||
*/
|
||||
class NotFindPropertyException extends \Exception
|
||||
{
|
||||
|
||||
/**
|
||||
* NotFindClassException constructor.
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @param Throwable|null $previous
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
/**
|
||||
* Class RedisConnectException
|
||||
* @package Kiri\Exception
|
||||
*/
|
||||
class RedisConnectException extends \Exception
|
||||
{
|
||||
|
||||
}
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
namespace Kiri\Exception;
|
||||
|
||||
|
||||
/**
|
||||
* Class RedisConnectException
|
||||
* @package Kiri\Exception
|
||||
*/
|
||||
class RedisConnectException extends \Exception
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user