Package com.priint.comet.common
Class CometException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.priint.comet.common.CometException
- All Implemented Interfaces:
Serializable
The type Comet exception.
For internal usage.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Comet exception.CometException(int errorCode, String serverModule, String errorMessage) Instantiates a new Comet exception. -
Method Summary
Modifier and TypeMethodDescriptionintGets error code.Gets server module.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CometException
public CometException()Instantiates a new Comet exception. -
CometException
Instantiates a new Comet exception.- Parameters:
errorCode- the error codeserverModule- the server moduleerrorMessage- the error message
-
-
Method Details
-
getErrorCode
public int getErrorCode()Gets error code.- Returns:
- the error code
-
getServerModule
Gets server module.- Returns:
- the server module
-
getMessage
- Overrides:
getMessagein classThrowable
-