2020-08-31 01:27:08 +08:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Created by PhpStorm.
|
|
|
|
|
* User: whwyy
|
|
|
|
|
* Date: 2018/4/25 0025
|
|
|
|
|
* Time: 18:34
|
|
|
|
|
*/
|
2020-10-29 18:17:25 +08:00
|
|
|
declare(strict_types=1);
|
2020-08-31 01:27:08 +08:00
|
|
|
|
|
|
|
|
namespace Snowflake\Exception;
|
|
|
|
|
|
|
|
|
|
|
2020-12-17 14:09:14 +08:00
|
|
|
use JetBrains\PhpStorm\Pure;
|
2020-08-31 01:27:08 +08:00
|
|
|
use Throwable;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class ComponentException
|
2020-08-31 12:38:32 +08:00
|
|
|
* @package Snowflake\Snowflake\Exception
|
2020-08-31 01:27:08 +08:00
|
|
|
*/
|
|
|
|
|
class ComponentException extends \Exception
|
|
|
|
|
{
|
|
|
|
|
|
2020-12-17 14:09:14 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ComponentException constructor.
|
|
|
|
|
* @param string $message
|
|
|
|
|
* @param int $code
|
|
|
|
|
* @param Throwable|null $previous
|
|
|
|
|
*/
|
|
|
|
|
#[Pure] public function __construct(string $message = "", int $code = 0, Throwable $previous = NULL)
|
2020-08-31 01:27:08 +08:00
|
|
|
{
|
|
|
|
|
parent::__construct($message, 5000, $previous);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|