cmbYouku_Api/app/exception/BusinessException.php

20 lines
421 B
PHP
Raw Permalink Normal View History

2024-07-01 15:57:07 +08:00
<?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);
}
}