public interface IErrorManager extends IComponentProvider
ATTR_APP_NAME, ATTR_BEG_QUERY, ATTR_END_QUERY, ATTR_MID_QUERY, BIZPOLICY_MANAGER, CACHE_PROVIDER, COMMAND_PROVIDER, COMPONENTS_QUERY, INSTALL_PROVIDER, MECH_PROVIDER, METACONTEXT_PROVIDER, PHASE_PROVIDER, POLICY_PROVIDER, SEARCH_PROVIDER
Modifier and Type | Method and Description |
---|---|
IExceptionBean |
getExceptionBean(IContext context)
Get the exceptionBean for the request.
|
void |
handleException(HttpServletRequest request,
HttpServletResponse response,
Throwable t)
Manages
ExceptionBean s that might occur during interaction
with the com.webmethods.portal.framework.impl.PortalServlet
It does this by invoking the IDispatchManager.handleError(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, com.webmethods.portal.framework.error.IExceptionBean) with the appropriate information
This will also set the appropriate Http Response Codes |
boolean |
hasExceptionBean(IContext context)
returns true if there is an exceptionbean
|
void |
removeExceptionBean(IContext context)
Remove the exception bean from the request object.
|
exists, getComponent, getComponent, getComponent, getComponentQueryString, getComponents, getDefaultComponent, getLogger, initDeferredWebAppComponents, lookup, registerComponent, reloadComponent, reloadComponent, unregisterComponent, upgradeComponentDataFromBootstrapComponentData
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
acquireURI, acquireURI
void handleException(HttpServletRequest request, HttpServletResponse response, Throwable t)
ExceptionBean
s that might occur during interaction
with the com.webmethods.portal.framework.impl.PortalServlet
It does this by invoking the IDispatchManager.handleError(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, com.webmethods.portal.framework.error.IExceptionBean)
with the appropriate information
This will also set the appropriate Http Response Codesrequest
- response
- t
- boolean hasExceptionBean(IContext context)
IExceptionBean getExceptionBean(IContext context)
ExceptionBean
object. The exception bean is given the ID of
IConstants.EXCEPTION_BEAN_ID
. If an exception bean already
exists on the request, it is overwritten
After retrieving the exceptionBean you should call ExceptionBean.setException(java.lang.Exception)
context
- the Context to set the exception bean ontoremoveExceptionBean(com.webmethods.portal.bizPolicy.IContext)
,
ExceptionBean
void removeExceptionBean(IContext context)
context
- the Context to set the exception bean ontogetExceptionBean(com.webmethods.portal.bizPolicy.IContext)