Class ProtocolException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.github.theword.queqiao.core.exception.QueQiaoException
io.github.theword.queqiao.core.exception.protocol.ProtocolException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProtocolException(int code, String message) ProtocolException(int code, String message, Object data) -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtocolExceptionbadRequest(String message) static ProtocolExceptionbadRequest(String message, Object data) intgetCode()getData()static ProtocolExceptioninternalError(String message) static ProtocolExceptioninternalError(String message, Object data) static ProtocolExceptionserviceUnavailable(String message, Object data) 服务暂不可用(如 Rcon 未启用 / 未连接)Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProtocolException
-
ProtocolException
-
-
Method Details
-
getCode
public int getCode() -
getData
-
badRequest
-
badRequest
-
internalError
-
internalError
-