You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
548 B

4 years ago
<?php
/**
* Created by PhpStorm.
* User: Admin
* Date: 2018/8/6
* Time: 19:04
*/
namespace app\lib\exception;
use think\Exception;
class HtmlException extends Exception
{
public $message = "操作失败,请重试!";
public function __construct($message = "")
{
parent::__construct();
if(is_string($message) && $message){
$this->message = $message;
}
}
public function setMessage($message){
$this->message = $message;
return $this;
}
}