Author: chris.laprun(a)jboss.com
Date: 2010-09-06 17:10:09 -0400 (Mon, 06 Sep 2010)
New Revision: 4057
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/PortletManagementHandler.java
Log:
- Fixed exception handling.
Modified:
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/PortletManagementHandler.java
===================================================================
---
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/PortletManagementHandler.java 2010-09-06
21:05:04 UTC (rev 4056)
+++
components/wsrp/trunk/producer/src/main/java/org/gatein/wsrp/producer/handlers/PortletManagementHandler.java 2010-09-06
21:10:09 UTC (rev 4057)
@@ -85,7 +85,6 @@
import org.oasis.wsrp.v2.MissingParameters;
import org.oasis.wsrp.v2.ModifyRegistrationRequired;
import org.oasis.wsrp.v2.OperationFailed;
-import org.oasis.wsrp.v2.OperationFailedFault;
import org.oasis.wsrp.v2.OperationNotSupported;
import org.oasis.wsrp.v2.PortletContext;
import org.oasis.wsrp.v2.PortletDescription;
@@ -98,7 +97,6 @@
import org.oasis.wsrp.v2.ResetProperty;
import org.oasis.wsrp.v2.ResourceList;
import org.oasis.wsrp.v2.ResourceSuspended;
-import org.oasis.wsrp.v2.ReturnAny;
import org.oasis.wsrp.v2.SetExportLifetime;
import org.oasis.wsrp.v2.SetPortletProperties;
import org.oasis.wsrp.v2.SetPortletsLifetime;
@@ -622,7 +620,7 @@
}
catch (Exception e)
{
- throw new OperationFailed("Operation Failed while trying to
ExportPortlets.", WSRPTypeFactory.createOperationFailedFault());
+ throw WSRP2ExceptionFactory.throwWSException(OperationFailed.class,
"Operation Failed while trying to ExportPortlets.", e);
}
finally
{
Show replies by date