Add ApiSystemException class.
This commit is contained in:
parent
0bb1ea384a
commit
133d8ecfe0
|
@ -2,8 +2,6 @@
|
|||
|
||||
namespace PdToolKit\Exceptions;
|
||||
|
||||
use Throwable;
|
||||
|
||||
class ApiInvalidParamException extends ApiException
|
||||
{
|
||||
public function __construct($message, Throwable $previous = null)
|
||||
|
|
11
src/Exceptions/ApiSystemException.php
Normal file
11
src/Exceptions/ApiSystemException.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace PdToolKit\Exceptions;
|
||||
|
||||
class ApiSystemException extends ApiException
|
||||
{
|
||||
public function __construct($message = "网络波动,稍后再试", Throwable $previous = null)
|
||||
{
|
||||
parent::__construct($message, 400000, $previous);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user