仓库初始化
This commit is contained in:
15
extend/Yzh/Exception/ConfigException.php
Normal file
15
extend/Yzh/Exception/ConfigException.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Yzh\Exception;
|
||||
|
||||
class ConfigException extends BaseException
|
||||
{
|
||||
public function __construct($message = "", $code = 0)
|
||||
{
|
||||
$msg = ExceptionCode::getErrorMessage($code);
|
||||
if (!empty($message)) {
|
||||
$msg .= ": " . $message;
|
||||
}
|
||||
parent::__construct((string) $msg, (int) $code);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user