类的使用
network.nerve.core.constant.ErrorCode
-
-
network.nerve.core.basic中ErrorCode的使用
返回ErrorCode的network.nerve.core.basic中的方法 修饰符和类型 方法 说明 ErrorCodeResult. getErrorCode()参数类型为ErrorCode的network.nerve.core.basic中的方法 修饰符和类型 方法 说明 static ResultResult. getFailed(ErrorCode errorCode)static ResultResult. getSuccess(ErrorCode successCode)voidResult. setErrorCode(ErrorCode errorCode)参数类型为ErrorCode的network.nerve.core.basic中的构造器 构造器 说明 Result(boolean success, ErrorCode errorCode)Result(boolean success, ErrorCode errorCode, T data) -
network.nerve.core.constant中ErrorCode的使用
声明为ErrorCode的network.nerve.core.constant中的字段 修饰符和类型 字段 说明 static ErrorCodeCommonCodeConstanst. CMD_NOTFOUNDstatic ErrorCodeCommonCodeConstanst. CONFIG_ERRORstatic ErrorCodeCommonCodeConstanst. DATA_ERRORstatic ErrorCodeCommonCodeConstanst. DATA_NOT_FOUNDstatic ErrorCodeCommonCodeConstanst. DATA_PARSE_ERRORstatic ErrorCodeCommonCodeConstanst. DATA_SIZE_ERRORstatic ErrorCodeCommonCodeConstanst. DATA_SIZE_ERROR_EXTENDstatic ErrorCodeCommonCodeConstanst. DB_DELETE_ERRORstatic ErrorCodeCommonCodeConstanst. DB_QUERY_ERRORstatic ErrorCodeCommonCodeConstanst. DB_SAVE_BATCH_ERRORstatic ErrorCodeCommonCodeConstanst. DB_SAVE_ERRORstatic ErrorCodeCommonCodeConstanst. DB_TABLE_CREATE_ERRORstatic ErrorCodeCommonCodeConstanst. DB_TABLE_EXISTstatic ErrorCodeCommonCodeConstanst. DB_TABLE_NOT_EXISTstatic ErrorCodeCommonCodeConstanst. DB_UPDATE_ERRORstatic ErrorCodeCommonCodeConstanst. DESERIALIZE_ERRORstatic ErrorCodeCommonCodeConstanst. DOWNLOAD_VERSION_FAILDstatic ErrorCodeCommonCodeConstanst. FAILEDstatic ErrorCodeCommonCodeConstanst. FILE_OPERATION_FAILDstatic ErrorCodeCommonCodeConstanst. IO_ERRORstatic ErrorCodeCommonCodeConstanst. LANGUAGE_CANNOT_SET_NULLstatic ErrorCodeCommonCodeConstanst. NULL_PARAMETERstatic ErrorCodeCommonCodeConstanst. PARAMETER_ERRORstatic ErrorCodeCommonCodeConstanst. PARSE_JSON_FAILDstatic ErrorCodeCommonCodeConstanst. REQUEST_DENIEDstatic ErrorCodeCommonCodeConstanst. REQUEST_TIME_OUTstatic ErrorCodeCommonCodeConstanst. RPC_REQUEST_FAILDstatic ErrorCodeCommonCodeConstanst. SERIALIZE_ERRORstatic ErrorCodeCommonCodeConstanst. SIGNATURE_ERRORstatic ErrorCodeCommonCodeConstanst. SUCCESSstatic ErrorCodeCommonCodeConstanst. SYS_UNKOWN_EXCEPTIONstatic ErrorCodeCommonCodeConstanst. THREAD_REPETITION返回ErrorCode的network.nerve.core.constant中的方法 修饰符和类型 方法 说明 static ErrorCodeErrorCode. init(String code) -
network.nerve.core.exception中ErrorCode的使用
返回ErrorCode的network.nerve.core.exception中的方法 修饰符和类型 方法 说明 ErrorCodeNulsException. getErrorCode()ErrorCodeNulsRuntimeException. getErrorCode()参数类型为ErrorCode的network.nerve.core.exception中的构造器 构造器 说明 BeanStatusException(ErrorCode message)BeanStatusException(ErrorCode message, Throwable cause)BeanStatusException(ErrorCode message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)NulsException(ErrorCode message)Constructs a new exception with the specified detail validator.NulsException(ErrorCode errorCode, String message)NulsException(ErrorCode message, Throwable cause)Constructs a new exception with the specified detail validator and cause.NulsException(ErrorCode message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Constructs a new exception with the specified detail validator, cause, suppression enabled or disabled, and writable stack trace enabled or disabled.NulsRuntimeException(ErrorCode errorCode)Constructs a new exception with the specified detail validator.NulsRuntimeException(ErrorCode errorCode, String message)Constructs a new exception with the specified detail validator.NulsRuntimeException(ErrorCode errorCode, String message, Throwable cause)Constructs a new exception with the specified detail validator and cause.NulsRuntimeException(ErrorCode errorCode, Throwable cause)Constructs a new exception with the specified detail validator and cause.NulsRuntimeException(ErrorCode message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Constructs a new exception with the specified detail validator, cause, suppression enabled or disabled, and writable stack trace enabled or disabled. -
network.nerve.core.rpc.cmd中ErrorCode的使用
参数类型为ErrorCode的network.nerve.core.rpc.cmd中的方法 修饰符和类型 方法 说明 protected ResponseBaseCmd. failed(ErrorCode errorCode)返回预定义的失败对象 Returns the predefined failed objectprotected ResponseBaseCmd. failed(ErrorCode errorCode, String errMsg)预定义失败对象,同时带有自定义错误消息 Predefined failed object with a custom error message -
network.nerve.core.rpc.model.message中ErrorCode的使用
参数类型为ErrorCode的network.nerve.core.rpc.model.message中的方法 修饰符和类型 方法 说明 static ResponseMessageUtil. newFailResponse(String requestId, ErrorCode errorCode)构造一个执行失败的Response对象 Constructing a new Response object -
network.nerve.kit.error中ErrorCode的使用
-
network.nerve.kit.model.dto中ErrorCode的使用
参数类型为ErrorCode的network.nerve.kit.model.dto中的方法 修饰符和类型 方法 说明 static RpcResultRpcResult. failed(ErrorCode errorCode)static RpcResultRpcResult. failed(ErrorCode errorCode, String data)
-