--- CircuitBreaker/src/dk/thoerup/curcuitbreaker/ClosedState.java 2009/10/08 20:39:39 424 +++ CircuitBreaker/src/dk/thoerup/curcuitbreaker/ClosedState.java 2009/10/20 10:26:50 450 @@ -13,17 +13,17 @@ failureThreshold.set( threshold ); } - public void preInvoke(CircuitBreaker circuitBreaker) throws Throwable + public void preInvoke(CircuitBreaker circuitBreaker) throws Exception { // NO OP } - public void postInvoke(CircuitBreaker circuitBreaker) throws Throwable + public void postInvoke(CircuitBreaker circuitBreaker) throws Exception { resetFailureCount(); } - public void onError(CircuitBreaker circuitBreaker, Throwable t) throws Throwable + public void onError(CircuitBreaker circuitBreaker, Exception t) throws Exception { int currentCount = failureCount.incrementAndGet(); int threshold = failureThreshold.get();