Skip to content

Commit a2db1e6

Browse files
werewolf81werewolf81
authored andcommitted
Changed the thrown \Exception to a \RuntimeException instead.
1 parent 0a63658 commit a2db1e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/RabbitMQQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ protected function reportConnectionError($action, Exception $e)
332332

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

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

0 commit comments

Comments
 (0)