Class ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.exxothermic.audioeverywheresdk.webservices.exceptions.ServiceException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HttpClientException
,HttpServerException
Class which serves as the WebServiceResponseHandler exception model
- Since:
- 9/30/13
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Getter for the exception's codeGetter for the exception's messagevoid
setCode
(int code) Setter for the exception's codevoid
setMessage
(String message) Setter for the exception's messageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceException
public ServiceException()
-
-
Method Details
-
getCode
public int getCode()Getter for the exception's code- Returns:
- The exception's code
-
setCode
public void setCode(int code) Setter for the exception's code- Parameters:
code
- The new exception's code
-
getMessage
Getter for the exception's message- Overrides:
getMessage
in classThrowable
- Returns:
- The exception's message
-
setMessage
Setter for the exception's message- Parameters:
message
- The new exception's message
-