diff --git a/src/StateHandlers/HalfOpenStateHandler.php b/src/StateHandlers/HalfOpenStateHandler.php index 12552c5..3ca1f38 100644 --- a/src/StateHandlers/HalfOpenStateHandler.php +++ b/src/StateHandlers/HalfOpenStateHandler.php @@ -23,11 +23,12 @@ public function onSucess() /** * @param \Exception $exception * @return void + * @throws CircuitOpenException */ public function onFailure(\Exception $exception) { $this->breaker->openCircuit(); - + throw CircuitOpenException::make($this->breaker->getName()); } }