* @throws IllegalArgumentException if <tt>exceptionClass</tt> is not a {@link Throwable}
* @since 0.1
*/
public FailoverInvoker(
final Class[] types, final ProxyFactory proxyFactory, final Object[] delegates, final Class exceptionClass) {
super(types, proxyFactory, new SimpleReference(delegates[0]), Delegating.MODE_DIRECT);
if (!Throwable.class.isAssignableFrom(exceptionClass)) {
throw new IllegalArgumentException("exceptionClass is not a Throwable");
}
this.delegates = delegates;
this.exceptionClass = exceptionClass;