package org.infinispan.server.test.util.osgi;
/**
* Class copied from JBoss Fuse project and modified.
*/
public class CommandExecutionException extends RuntimeException {
public CommandExecutionException(String message) {
super(message);
}
public CommandExecutionException(String message, Throwable cause) {
super(message, cause);
}
public CommandExecutionException(Throwable cause) {
super(cause);
}
public static RuntimeException launderThrowable(Throwable cause) {
if (cause instanceof RuntimeException) {
return (RuntimeException) cause;
} else if (cause instanceof Error) {
throw (Error) cause;
} else {
return new CommandExecutionException(cause);
}
}
}