List of usage examples for com.liferay.portal.kernel.monitoring RequestStatus ERROR
RequestStatus ERROR
To view the source code for com.liferay.portal.kernel.monitoring RequestStatus ERROR.
Click Source Link
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); } }