<?php

/**
 * 框架错误信息
 * Created On 2021/11/1
 * @author yuanb yuanbo0x@gmail.com
 */

namespace Framework\Define;

/**
 * 定义错误常量类
 */
class ErrorDefine
{
    public const SUCCESS = 0;
    public const REQUEST_CRYPT_ERROR = 1;
    public const REQUEST_PARAM_ERROR = 2;
    public const PACKET_ID_ERROR = 3;
    public const CONFIG_LOAD_ERROR = 4;
    public const SESSION_ERROR = 5;
    public const EXCEPTION_ERROR = 6;
    public const REDIS_COMMAND_PARAM_ERROR = 7;
    public const REDIS_COMMAND_NOT_EXIST = 8;
    public const REDIS_COMMAND_RUN_FAIL = 9;
    public const REDIS_SCRIPT_RUN_FAIL = 10;
    public const DB_TABLE_TYPE_ERROR = 11;
    public const REDIS_LINK_INFO_ERROR = 12;
    public const REDIS_CREATE_SINGLE_FAIL = 13;
    public const REDIS_CREATE_CLUSTER_FAIL = 14;
    public const REDIS_LOGIC_ERROR = 15;
    public const MODEL_CREATE_FAIL = 16;
    public const REQUEST_DATA_INVALID = 17; // 请求参数无效
    public const ERROR_INTERNAL = 18; // 代码内部错误
    public const TEMPLATE_CONFIG_NOT_FOUND = 19;     //模板未找到
    public const PVE_ERROR = 20;    //pvp出现错误
    public const MODULE_DISABLE = 21; // 模块禁止
}
