Class ProtocolException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.theword.queqiao.tool.exception.QueQiaoException
com.github.theword.queqiao.tool.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) 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
-