Class CommonsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ch.autumo.commons.CommonsException
- All Implemented Interfaces:
Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionCommonsException(String message) Commons exception.CommonsException(String message, int code) Commons exception.CommonsException(String message, String rawMessage) Commons exception.CommonsException(String message, String rawMessage, int code) Commons exception.CommonsException(String message, Throwable cause) Commons exception.CommonsException(String message, Throwable cause, int code) Commons exception. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Get exception code.Get raw message.voidsetCode(int code) Set exception code.voidsetRawMessage(String rawMessage) Set raw message.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommonsException
-
CommonsException
Commons exception.- Parameters:
message- messagecode- code
-
CommonsException
-
CommonsException
-
CommonsException
-
CommonsException
-
-
Method Details
-
getCode
public int getCode()Get exception code.- Returns:
- exception code
-
setCode
public void setCode(int code) Set exception code.- Parameters:
code- exception code
-
getRawMessage
-
setRawMessage
-