Example usage for com.liferay.portal.kernel.monitoring RequestStatus ERROR

List of usage examples for com.liferay.portal.kernel.monitoring RequestStatus ERROR

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.monitoring RequestStatus ERROR.

Prototype

RequestStatus ERROR

To view the source code for com.liferay.portal.kernel.monitoring RequestStatus ERROR.

Click Source Link

Usage

From source file:com.liferay.portlet.MonitoringPortlet.java

License:Open Source License

private void _processException(boolean monitoringPortletRequest,
        PortletRequestDataSample portletRequestDataSample, Exception e) throws IOException, PortletException {

    if (monitoringPortletRequest) {
        portletRequestDataSample.capture(RequestStatus.ERROR);
    }/* w ww.  jav a  2 s  . c o  m*/

    if (e instanceof IOException) {
        throw (IOException) e;
    } else if (e instanceof PortletException) {
        throw (PortletException) e;
    } else {
        throw new PortletException("Unable to process portlet", e);
    }
}