mirror of https://github.com/apache/jclouds.git
fixed to work with Compute Maps
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1947 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
557d28783f
commit
e93a081d9e
|
@ -106,7 +106,7 @@ public class Utils {
|
||||||
* @throws E
|
* @throws E
|
||||||
*/
|
*/
|
||||||
public static void rethrowIfRuntime(Exception e) {
|
public static void rethrowIfRuntime(Exception e) {
|
||||||
if (e instanceof ExecutionException) {
|
if (e instanceof ExecutionException || e instanceof ComputationException) {
|
||||||
Throwable nested = e.getCause();
|
Throwable nested = e.getCause();
|
||||||
if (nested instanceof Error)
|
if (nested instanceof Error)
|
||||||
throw (Error) nested;
|
throw (Error) nested;
|
||||||
|
|
Loading…
Reference in New Issue