Author: chris.laprun(a)jboss.com
Date: 2008-06-12 20:13:23 -0400 (Thu, 12 Jun 2008)
New Revision: 11008
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/WSRPUtils.java
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/RemoteSOAPInvokerServiceFactory.java
Log:
- Minor.
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/WSRPUtils.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/WSRPUtils.java 2008-06-12
23:46:12 UTC (rev 11007)
+++
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/WSRPUtils.java 2008-06-13
00:13:23 UTC (rev 11008)
@@ -431,9 +431,7 @@
catch (ConversionException e)
{
// Previous behavior on using ConversionException was like that
- IllegalArgumentException iae = new IllegalArgumentException();
- iae.initCause(e);
- throw iae;
+ throw new IllegalArgumentException(e);
}
}
@@ -446,9 +444,7 @@
catch (ConversionException e)
{
// Previous behavior on using ConversionException was like that
- IllegalArgumentException iae = new IllegalArgumentException();
- iae.initCause(e);
- throw iae;
+ throw new IllegalArgumentException(e);
}
}
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2008-06-12
23:46:12 UTC (rev 11007)
+++
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2008-06-13
00:13:23 UTC (rev 11008)
@@ -277,15 +277,11 @@
}
catch (ClassNotFoundException e)
{
- IllegalArgumentException iae = new
IllegalArgumentException("Couldn't find policy class " + policyClassName +
".");
- iae.initCause(e);
- throw iae;
+ throw new IllegalArgumentException("Couldn't find policy class
" + policyClassName + ".", e);
}
catch (Exception e)
{
- IllegalArgumentException iae = new
IllegalArgumentException("Couldn't instantiate policy class.");
- iae.initCause(e);
- throw iae;
+ throw new IllegalArgumentException("Couldn't instantiate policy
class.", e);
}
}
else
@@ -308,15 +304,11 @@
}
catch (ClassNotFoundException e)
{
- IllegalArgumentException iae = new
IllegalArgumentException("Couldn't find validator class " +
validatorClassName + ".");
- iae.initCause(e);
- throw iae;
+ throw new IllegalArgumentException("Couldn't find validator class
" + validatorClassName + ".", e);
}
catch (Exception e)
{
- IllegalArgumentException iae = new
IllegalArgumentException("Couldn't instantiate validator class.");
- iae.initCause(e);
- throw iae;
+ throw new IllegalArgumentException("Couldn't instantiate
validator class.", e);
}
}
else
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/RemoteSOAPInvokerServiceFactory.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/RemoteSOAPInvokerServiceFactory.java 2008-06-12
23:46:12 UTC (rev 11007)
+++
branches/JBoss_Portal_Branch_2_7/wsrp/src/main/org/jboss/portal/wsrp/services/RemoteSOAPInvokerServiceFactory.java 2008-06-13
00:13:23 UTC (rev 11008)
@@ -88,12 +88,9 @@
}
catch (MalformedURLException e)
{
- IllegalArgumentException iae = new IllegalArgumentException("Require a
well-formed URL specifying where to " +
- "find the WSRP services definition");
- iae.initCause(e);
available = false;
failed = true;
- throw iae;
+ throw new IllegalArgumentException("Require a well-formed URL specifying
where to find the WSRP services definition", e);
}
catch (Exception e)
{
Show replies by date