Author: krosenvold Date: Wed Feb 9 19:51:06 2011 New Revision: 1069062 URL: http://svn.apache.org/viewvc?rev=1069062&view=rev Log: [SUREFIRE-696] Removed usage of jdk1.4 exception constructor
As discussed with Stephan in the issue, these are not jdk 1.3 compatible ;) Modified: maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/ProviderList.java maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ChecksumCalculator.java maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/util/DefaultDirectoryScanner.java maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/util/ReflectionUtils.java maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PropertiesWrapper.java maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireStarter.java maven/surefire/trunk/surefire-booter/src/test/java/org/apache/maven/surefire/booter/SurefireReflectorTest.java maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/AbstractSurefireIntegrationTestClass.java maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/HelperAssertions.java maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/SurefireVerifierTestClass.java maven/surefire/trunk/surefire-providers/common-junit3/src/main/java/org/apache/maven/surefire/common/junit3/JUnit3Reflector.java maven/surefire/trunk/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/ConfigurableParallelComputer.java maven/surefire/trunk/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/TestSet.java maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGProvider.java Modified: maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java (original) +++ maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java Wed Feb 9 19:51:06 2011 @@ -53,6 +53,7 @@ import org.apache.maven.surefire.report. import org.apache.maven.surefire.testset.DirectoryScannerParameters; import org.apache.maven.surefire.testset.TestArtifactInfo; import org.apache.maven.surefire.testset.TestRequest; +import org.apache.maven.surefire.util.NestedRuntimeException; import org.apache.maven.toolchain.Toolchain; import org.codehaus.plexus.util.StringUtils; @@ -117,7 +118,7 @@ public abstract class AbstractSurefireMo } catch ( InvalidVersionSpecificationException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } } Modified: maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/ProviderList.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/ProviderList.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/ProviderList.java (original) +++ maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/ProviderList.java Wed Feb 9 19:51:06 2011 @@ -22,6 +22,7 @@ package org.apache.maven.plugin.surefire import org.apache.maven.plugin.logging.Log; import org.apache.maven.plugin.surefire.booterclient.ProviderDetector; import org.apache.maven.surefire.providerapi.SurefireProvider; +import org.apache.maven.surefire.util.NestedRuntimeException; import java.io.IOException; import java.util.ArrayList; @@ -92,7 +93,7 @@ public class ProviderList catch ( IOException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } Modified: maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java (original) +++ maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/BooterSerializer.java Wed Feb 9 19:51:06 2011 @@ -29,6 +29,7 @@ import org.apache.maven.surefire.report. import org.apache.maven.surefire.testset.DirectoryScannerParameters; import org.apache.maven.surefire.testset.TestArtifactInfo; import org.apache.maven.surefire.testset.TestRequest; +import org.apache.maven.surefire.util.NestedRuntimeException; import org.codehaus.plexus.util.StringUtils; import java.io.ByteArrayOutputStream; @@ -221,7 +222,7 @@ public class BooterSerializer } catch ( Exception e ) { - throw new RuntimeException( "bug in property conversion", e ); + throw new NestedRuntimeException( "bug in property conversion", e ); } } else Modified: maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ChecksumCalculator.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ChecksumCalculator.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ChecksumCalculator.java (original) +++ maven/surefire/trunk/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ChecksumCalculator.java Wed Feb 9 19:51:06 2011 @@ -21,6 +21,7 @@ package org.apache.maven.plugin.surefire import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.repository.ArtifactRepository; +import org.apache.maven.surefire.util.NestedRuntimeException; import java.io.File; import java.io.UnsupportedEncodingException; @@ -165,11 +166,11 @@ public class ChecksumCalculator } catch ( NoSuchAlgorithmException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } catch ( UnsupportedEncodingException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } } Modified: maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/util/DefaultDirectoryScanner.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/util/DefaultDirectoryScanner.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/util/DefaultDirectoryScanner.java (original) +++ maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/util/DefaultDirectoryScanner.java Wed Feb 9 19:51:06 2011 @@ -106,7 +106,7 @@ public class DefaultDirectoryScanner } catch ( ClassNotFoundException e ) { - throw new RuntimeException( "Unable to create test class '" + className + "'", e ); + throw new NestedRuntimeException( "Unable to create test class '" + className + "'", e ); } return testClass; } Modified: maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/util/ReflectionUtils.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/util/ReflectionUtils.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/util/ReflectionUtils.java (original) +++ maven/surefire/trunk/surefire-api/src/main/java/org/apache/maven/surefire/util/ReflectionUtils.java Wed Feb 9 19:51:06 2011 @@ -46,7 +46,7 @@ public class ReflectionUtils } catch ( NoSuchMethodException e ) { - throw new RuntimeException( "When finding method " + methodName, e ); + throw new NestedRuntimeException( "When finding method " + methodName, e ); } } Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PropertiesWrapper.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PropertiesWrapper.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PropertiesWrapper.java (original) +++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PropertiesWrapper.java Wed Feb 9 19:51:06 2011 @@ -19,6 +19,7 @@ package org.apache.maven.surefire.booter * under the License. */ +import org.apache.maven.surefire.util.NestedRuntimeException; import org.apache.maven.surefire.util.ReflectionUtils; import org.apache.maven.surefire.util.internal.StringUtils; @@ -186,7 +187,7 @@ public class PropertiesWrapper } catch ( Exception e ) { - throw new RuntimeException( "bug in property conversion", e ); + throw new NestedRuntimeException( "bug in property conversion", e ); } return result; } Modified: maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireStarter.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireStarter.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireStarter.java (original) +++ maven/surefire/trunk/surefire-booter/src/main/java/org/apache/maven/surefire/booter/SurefireStarter.java Wed Feb 9 19:51:06 2011 @@ -23,6 +23,7 @@ import org.apache.maven.surefire.provide import org.apache.maven.surefire.report.ReporterException; import org.apache.maven.surefire.suite.RunResult; import org.apache.maven.surefire.testset.TestSetFailedException; +import org.apache.maven.surefire.util.NestedRuntimeException; import java.io.File; import java.io.IOException; @@ -149,11 +150,11 @@ public class SurefireStarter } catch ( TestSetFailedException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } catch ( ReporterException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } finally { Modified: maven/surefire/trunk/surefire-booter/src/test/java/org/apache/maven/surefire/booter/SurefireReflectorTest.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-booter/src/test/java/org/apache/maven/surefire/booter/SurefireReflectorTest.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-booter/src/test/java/org/apache/maven/surefire/booter/SurefireReflectorTest.java (original) +++ maven/surefire/trunk/surefire-booter/src/test/java/org/apache/maven/surefire/booter/SurefireReflectorTest.java Wed Feb 9 19:51:06 2011 @@ -33,6 +33,7 @@ import java.util.Arrays; import java.util.Properties; import junit.framework.TestCase; +import org.apache.maven.surefire.util.NestedRuntimeException; /** * @author Kristian Rosenvold @@ -135,15 +136,15 @@ public class SurefireReflectorTest } catch ( IllegalAccessException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } catch ( InvocationTargetException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } catch ( NoSuchMethodException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } } Modified: maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/AbstractSurefireIntegrationTestClass.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/AbstractSurefireIntegrationTestClass.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/AbstractSurefireIntegrationTestClass.java (original) +++ maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/AbstractSurefireIntegrationTestClass.java Wed Feb 9 19:51:06 2011 @@ -26,6 +26,7 @@ import org.apache.maven.artifact.version import org.apache.maven.artifact.versioning.VersionRange; import org.apache.maven.it.VerificationException; import org.apache.maven.it.Verifier; +import org.apache.maven.surefire.util.NestedRuntimeException; import java.util.ArrayList; import java.util.List; @@ -67,7 +68,7 @@ public abstract class AbstractSurefireIn } catch ( InvalidVersionSpecificationException e ) { - throw new RuntimeException( e.getMessage(), e ); + throw new NestedRuntimeException( e.getMessage(), e ); } } Modified: maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/HelperAssertions.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/HelperAssertions.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/HelperAssertions.java (original) +++ maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/HelperAssertions.java Wed Feb 9 19:51:06 2011 @@ -28,6 +28,7 @@ import java.util.List; import java.util.Locale; import junit.framework.Assert; +import org.apache.maven.surefire.util.NestedRuntimeException; public class HelperAssertions { @@ -109,7 +110,7 @@ public class HelperAssertions } catch ( Exception e ) { - throw new RuntimeException( "Couldn't parse XML reports", e ); + throw new NestedRuntimeException( "Couldn't parse XML reports", e ); } return reports; } Modified: maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/SurefireVerifierTestClass.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/SurefireVerifierTestClass.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/SurefireVerifierTestClass.java (original) +++ maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/SurefireVerifierTestClass.java Wed Feb 9 19:51:06 2011 @@ -30,6 +30,7 @@ import org.apache.maven.it.Verifier; import org.apache.maven.it.util.FileUtils; import org.apache.maven.it.util.ResourceExtractor; import org.apache.maven.reporting.MavenReportException; +import org.apache.maven.surefire.util.NestedRuntimeException; import java.io.File; import java.io.IOException; @@ -66,9 +67,9 @@ public abstract class SurefireVerifierTe this.goals = getInitialGoals(); this.verifier = new Verifier(testDir.getAbsolutePath()); } catch (VerificationException e) { - throw new RuntimeException(e); + throw new NestedRuntimeException(e); } catch (IOException e) { - throw new RuntimeException(e); + throw new NestedRuntimeException(e); } } @@ -104,7 +105,7 @@ public abstract class SurefireVerifierTe goals1.add("-DtestNgClassifier=jdk15"); } } catch (InvalidVersionSpecificationException e) { - throw new RuntimeException(e.getMessage(), e); + throw new NestedRuntimeException(e.getMessage(), e); } } @@ -124,7 +125,7 @@ public abstract class SurefireVerifierTe goals.add("-DtestNgClassifier=jdk15"); } } catch (InvalidVersionSpecificationException e) { - throw new RuntimeException(e.getMessage(), e); + throw new NestedRuntimeException(e.getMessage(), e); } } @@ -268,7 +269,7 @@ public abstract class SurefireVerifierTe return new DefaultArtifactVersion(v); } } catch (VerificationException e) { - throw new RuntimeException(e); + throw new NestedRuntimeException(e); } return null; Modified: maven/surefire/trunk/surefire-providers/common-junit3/src/main/java/org/apache/maven/surefire/common/junit3/JUnit3Reflector.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-providers/common-junit3/src/main/java/org/apache/maven/surefire/common/junit3/JUnit3Reflector.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-providers/common-junit3/src/main/java/org/apache/maven/surefire/common/junit3/JUnit3Reflector.java (original) +++ maven/surefire/trunk/surefire-providers/common-junit3/src/main/java/org/apache/maven/surefire/common/junit3/JUnit3Reflector.java Wed Feb 9 19:51:06 2011 @@ -19,6 +19,7 @@ package org.apache.maven.surefire.common * under the License. */ +import org.apache.maven.surefire.util.NestedRuntimeException; import org.apache.maven.surefire.util.ReflectionUtils; import java.lang.reflect.Constructor; @@ -110,7 +111,7 @@ public final class JUnit3Reflector } catch ( NoSuchMethodException e ) { - throw new RuntimeException( "When finding method " + methodName, e ); + throw new NestedRuntimeException( "When finding method " + methodName, e ); } } Modified: maven/surefire/trunk/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/ConfigurableParallelComputer.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/ConfigurableParallelComputer.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/ConfigurableParallelComputer.java (original) +++ maven/surefire/trunk/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/ConfigurableParallelComputer.java Wed Feb 9 19:51:06 2011 @@ -28,6 +28,7 @@ import java.util.concurrent.Executors; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; +import org.apache.maven.surefire.util.NestedRuntimeException; import org.junit.runner.Computer; import org.junit.runner.Runner; import org.junit.runners.ParentRunner; @@ -94,7 +95,7 @@ public class ConfigurableParallelCompute } catch ( InterruptedException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } } @@ -198,7 +199,7 @@ public class ConfigurableParallelCompute } catch ( ExecutionException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } } @@ -213,7 +214,7 @@ public class ConfigurableParallelCompute } catch ( InterruptedException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } } } Modified: maven/surefire/trunk/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/TestSet.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/TestSet.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/TestSet.java (original) +++ maven/surefire/trunk/surefire-providers/surefire-junit47/src/main/java/org/apache/maven/surefire/junitcore/TestSet.java Wed Feb 9 19:51:06 2011 @@ -30,6 +30,7 @@ import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; +import org.apache.maven.surefire.util.NestedRuntimeException; import org.junit.runner.Description; /** @@ -88,7 +89,7 @@ public class TestSet } catch ( Exception e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } } Modified: maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java (original) +++ maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGExecutor.java Wed Feb 9 19:51:06 2011 @@ -34,6 +34,7 @@ import java.lang.reflect.Constructor; import java.util.List; import java.util.Map; +import org.apache.maven.surefire.util.NestedRuntimeException; import org.testng.TestNG; /** @@ -136,7 +137,7 @@ public class TestNGExecutor } catch ( Exception e ) { - throw new RuntimeException( "Bug in ConfigurationAwareTestNGReporter", e ); + throw new NestedRuntimeException( "Bug in ConfigurationAwareTestNGReporter", e ); } } catch ( ClassNotFoundException e ) Modified: maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGProvider.java URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGProvider.java?rev=1069062&r1=1069061&r2=1069062&view=diff ============================================================================== --- maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGProvider.java (original) +++ maven/surefire/trunk/surefire-providers/surefire-testng/src/main/java/org/apache/maven/surefire/testng/TestNGProvider.java Wed Feb 9 19:51:06 2011 @@ -31,6 +31,7 @@ import org.apache.maven.surefire.testset import org.apache.maven.surefire.testset.TestRequest; import org.apache.maven.surefire.testset.TestSetFailedException; import org.apache.maven.surefire.util.DirectoryScanner; +import org.apache.maven.surefire.util.NestedRuntimeException; import org.apache.maven.surefire.util.TestsToRun; import java.io.File; @@ -149,7 +150,7 @@ public class TestNGProvider } catch ( TestSetFailedException e ) { - throw new RuntimeException( e ); + throw new NestedRuntimeException( e ); } } else