Class ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.deltava.util.ControllerException
org.deltava.service.ServiceException
- All Implemented Interfaces:
Serializable
An Exception thrown by Web Services.
- Since:
- 1.0
- Version:
- 9.0
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionServiceException
(int code, String msg) Creates a new Web Service Exception.ServiceException
(int code, String msg, boolean dumpStack) Creates a new Web Service Exception.ServiceException
(int code, String msg, Throwable t) Creates a new Web Service Exception from an existing exception. -
Method Summary
Methods inherited from class org.deltava.util.ControllerException
getForwardURL, getLogStackDump, getStatusCode, isSuppressed, isWarning, setForwardURL, setLogStackDump, setStatusCode, setSuppressed, setWarning
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceException
-
ServiceException
ServiceException(int code, String msg) Creates a new Web Service Exception.- Parameters:
code
- the HTTP result codemsg
- the exception message
-
ServiceException
ServiceException(int code, String msg, boolean dumpStack) Creates a new Web Service Exception.- Parameters:
code
- the HTTP result codemsg
- the exception messagedumpStack
- TRUE if the stack should be dumped, otherwise FALSE
-
-
Method Details
-
getCode
public int getCode()Returns the HTTP result code.- Returns:
- the HTTP result code
-