Package ch.autumo.commons
Class CommonsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ch.autumo.commons.CommonsException
- All Implemented Interfaces:
Serializable
Commons exception.
- See Also:
-
Constructor Summary
ConstructorDescriptionCommonsException
(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 TypeMethodDescriptionint
getCode()
Get exception code.Get raw message.void
setCode
(int code) Set exception code.void
setRawMessage
(String rawMessage) Set raw message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommonsException
Commons exception.- Parameters:
message
- message
-
CommonsException
Commons exception.- Parameters:
message
- messagecode
- code
-
CommonsException
Commons exception.- Parameters:
message
- messagecause
- throwable
-
CommonsException
Commons exception.- Parameters:
message
- messagecause
- throwablecode
- code
-
CommonsException
Commons exception.- Parameters:
message
- messagerawMessage
- raw message
-
CommonsException
Commons exception.- Parameters:
message
- messagerawMessage
- raw messagecode
- code
-
-
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
Get raw message.- Returns:
- raw message
-
setRawMessage
Set raw message.- Parameters:
rawMessage
- raw message
-