|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
com.ibm.xdms.exception.XdmsException
public class XdmsException
XDMS Exception Class
Field Summary | |
---|---|
protected boolean |
hasSetResponse
Determines whether the response has been set with this exception * |
protected static java.util.logging.Logger |
LOGGER
Logger |
Constructor Summary | |
---|---|
XdmsException()
Constructs a new XDMS exception |
|
XdmsException(java.lang.String message)
Constructs a new XDMS exception with the specified message |
|
XdmsException(java.lang.String message,
java.lang.Throwable rootCause)
Constructs a new XDMS exception when the XDMS needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation, including a description message |
|
XdmsException(java.lang.Throwable rootCause)
Constructs a new XDMS exception when the XDMS needs to throw an exception and include a message about the "root cause" exception that interfered with its normal operation. |
Method Summary | |
---|---|
static java.lang.String |
createLocalizedMessage(java.lang.String messageKey,
java.lang.Object[] params,
java.lang.String resourceBundle)
Creates a localized message. |
static XdmsException |
createLocalizedXdmsException(java.lang.String messageKey,
java.lang.Object[] params,
java.lang.String resourceBundle,
java.lang.Throwable rootCause)
Creates an XdmsException with a localized message. |
static java.lang.String |
createServerMessage(java.lang.String messageKey,
java.lang.Object[] params,
java.lang.String resourceBundle)
Creates a localized message. |
static XdmsException |
createServerXdmsException(java.lang.String messageKey,
java.lang.Object[] params,
java.lang.String resourceBundle,
java.lang.Throwable rootCause)
Creates an XdmsException with a localized message. |
void |
setupResponse(ApplicationUsage appUsage,
javax.servlet.sip.SipServletRequest req,
javax.servlet.sip.SipServletResponse resp)
Sets up the response based on the XdmsException |
void |
setupResponse(XcapServerResponse xcapResponse)
Sets up the response based on the XdmsException |
Methods inherited from class javax.servlet.ServletException |
---|
getRootCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.util.logging.Logger LOGGER
protected boolean hasSetResponse
Constructor Detail |
---|
public XdmsException()
public XdmsException(java.lang.String message)
message
- a String
specifying the text of the
exception messagepublic XdmsException(java.lang.String message, java.lang.Throwable rootCause)
message
- a String
specifying the text of the
exception messagerootCause
- the Throwable
exception that interfered
with the XDMS's normal operation, making this XDMS exception
necessarypublic XdmsException(java.lang.Throwable rootCause)
rootCause
- the Throwable
exception that interfered
with the XDMS's normal operation, making this XDMS exception
necessaryMethod Detail |
---|
public static XdmsException createLocalizedXdmsException(java.lang.String messageKey, java.lang.Object[] params, java.lang.String resourceBundle, java.lang.Throwable rootCause)
XdmsException(String message, Throwable rootCause)
XdmsException(String message)
messageKey
- Message Key for the message in the resource bundleparams
- Optional array of parameters, pass null
if
there are noneresourceBundle
- Resource Bundle to retreive the message fromrootCause
- the Throwable
exception that interfered
with the XDMS's normal operation, making this XDMS exception
necessary
XdmsException(String, Throwable)
,
XdmsException(String)
public static java.lang.String createLocalizedMessage(java.lang.String messageKey, java.lang.Object[] params, java.lang.String resourceBundle)
messageKey
- Message Key for the message in the resource bundleparams
- Optional array of parameters, pass null
if
there are noneresourceBundle
- Resource Bundle to retreive the message from
public static XdmsException createServerXdmsException(java.lang.String messageKey, java.lang.Object[] params, java.lang.String resourceBundle, java.lang.Throwable rootCause)
XdmsException(String message, Throwable rootCause)
XdmsException(String message)
messageKey
- Message Key for the message in the resource bundleparams
- Optional array of parameters, pass null
if
there are noneresourceBundle
- Resource Bundle to retreive the message fromrootCause
- the Throwable
exception that interfered
with the XDMS's normal operation, making this XDMS exception
necessary
XdmsException(String, Throwable)
,
XdmsException(String)
public static java.lang.String createServerMessage(java.lang.String messageKey, java.lang.Object[] params, java.lang.String resourceBundle)
messageKey
- Message Key for the message in the resource bundleparams
- Optional array of parameters, pass null
if
there are noneresourceBundle
- Resource Bundle to retreive the message from
public void setupResponse(XcapServerResponse xcapResponse) throws java.io.IOException
xcapResponse
- XcapServerResponse
java.io.IOException
public void setupResponse(ApplicationUsage appUsage, javax.servlet.sip.SipServletRequest req, javax.servlet.sip.SipServletResponse resp) throws java.io.IOException
appUsage
- The ApplicationUsagereq
- The SipServletRequestresp
- The SipServletResponse
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |