Skip to content

Commit

Permalink
Changed the thrown \Exception to a \RuntimeException instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
werewolf81 authored and werewolf81 committed Jun 29, 2017
1 parent 0a63658 commit a2db1e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ protected function reportConnectionError($action, Exception $e)

// If it's set to false, throw an error rather than waiting
if ($this->sleepOnError === false) {
throw new \Exception('Error writing data to the connection with RabbitMQ');
throw new \RuntimeException('Error writing data to the connection with RabbitMQ');
}

// Sleep so that we don't flood the log file
Expand Down

0 comments on commit a2db1e6

Please sign in to comment.