--- CircuitBreaker/src/dk/thoerup/curcuitbreaker/OpenState.java 2009/10/08 20:39:39 424 +++ CircuitBreaker/src/dk/thoerup/curcuitbreaker/OpenState.java 2009/10/20 10:26:50 450 @@ -12,7 +12,7 @@ this.timeout.set( timeout ); } - public void preInvoke(CircuitBreaker circuitBreaker) throws Throwable + public void preInvoke(CircuitBreaker circuitBreaker) throws Exception { long now = System.currentTimeMillis(); long elapsed = now - tripTime.get(); @@ -27,12 +27,12 @@ } } - public void postInvoke(CircuitBreaker circuitBreaker) throws Throwable + public void postInvoke(CircuitBreaker circuitBreaker) throws Exception { // NO OP } - public void onError(CircuitBreaker circuitBreaker, Throwable t) throws Throwable + public void onError(CircuitBreaker circuitBreaker, Exception t) throws Exception { // NO OP }