25 lines
563 B
PHP
25 lines
563 B
PHP
<?php
|
|
|
|
namespace App\Exceptions;
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Dipper\Foundation\Exceptions\HttpException;
|
|
|
|
class AuthException extends HttpException
|
|
{
|
|
public $httpStatusCode = Response::HTTP_UNAUTHORIZED;
|
|
|
|
public $message = '已存在';
|
|
|
|
public $code = -1;
|
|
|
|
const NOT_LOGIN = 40001;
|
|
const NOT_ACTIVE = 40002;
|
|
const ACCOUNT_DISABLED = 40003;
|
|
const NOT_BOUND_UID = 40004;
|
|
const NOT_BOUND_MOBILE = 40005;
|
|
const PERMISSION_DENIED = 40006;
|
|
const FORBIDDEN = 40007;
|
|
const TOKEN_NOT_PROVIDED = 40008;
|
|
}
|