20 lines
421 B
PHP
20 lines
421 B
PHP
<?php
|
|
|
|
namespace app\exception;
|
|
|
|
use think\Exception;
|
|
|
|
/**
|
|
* @author canny
|
|
* @date 2023/10/19 18:21
|
|
**/
|
|
class BusinessException extends Exception
|
|
{
|
|
|
|
public function __construct(string $message = "", int $code = 0, \Throwable $previous = null)
|
|
{
|
|
!empty($message) && $this->message = $message;
|
|
!empty($code) && $this->code = $code;
|
|
parent::__construct($message, $code, $previous);
|
|
}
|
|
} |