hy-farm/muchang/common/services/StatusException.php
2026-05-29 19:54:56 +08:00

30 lines
484 B
PHP

<?php
/**
* Created by PhpStorm.
* User: zn
* Date: 2017/5/23
* Time: 19:09
*/
namespace common\services;
use yii\base\UserException;
/**
* 异常退出
* Class StatusException
* @package common\services
*/
class StatusException extends UserException
{
public $status = 0;
public $info = '';
public function __construct($status, $info = '')
{
$this->status = $status;
$this->info = $info;
parent::__construct("", $status);
}
}