1234567891011121314151617181920212223242526 |
- <?php
-
-
- namespace crmeb\exceptions;
-
-
- use Throwable;
-
- /**
- * Class AuthException
- */
- class SmsException extends \RuntimeException
- {
- public function __construct($message = "", $code = 0, Throwable $previous = null)
- {
- if (is_array($message)) {
- $errInfo = $message;
- $message = $errInfo[1] ?? '未知错误';
- if ($code === 0) {
- $code = $errInfo[0] ?? 400;
- }
- }
-
- parent::__construct($message, $code, $previous);
- }
- }
|