初始化仓库
This commit is contained in:
20
admin/exceptions/FormValidateException.php
Normal file
20
admin/exceptions/FormValidateException.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: chatfeed
|
||||
* Date: 2022/5/19
|
||||
* Time: 2:02 PM
|
||||
*/
|
||||
|
||||
namespace admin\exceptions;
|
||||
use yii\db\ActiveRecord;
|
||||
|
||||
class FormValidateException extends \Exception
|
||||
{
|
||||
protected $code = 422;
|
||||
public function __construct(ActiveRecord $model)
|
||||
{
|
||||
parent::__construct('', $this->code);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user