8000 minor #26706 [Messenger] Make NoHandlerForMessageException a logic ex… · symfony/symfony@6f15386 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f15386

Browse files
committed
minor #26706 [Messenger] Make NoHandlerForMessageException a logic exception (ogizanagi)
This PR was merged into the 4.1-dev branch. Discussion ---------- [Messenger] Make NoHandlerForMessageException a logic exception | Q | A | ------------- | --- | Branch? | master <!-- see below --> | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #26648 (comment) <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A <!-- required for new features --> To me, a missing handler for a message is a program logic exception (or misconfiguration). Even if it's only detected at runtime here. It's the same as `ServiceNotFoundException` which even is an `\InvalidArgumentException`. Could eventually also be the case here. Commits ------- 0489bbd [Messenger] Make NoHandlerForMessageException a logic exception
2 parents ecb629a + 0489bbd commit 6f15386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Exception/NoHandlerForMessageException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
/**
1515
* @author Samuel Roze <samuel.roze@gmail.com>
1616
*/
17-
class NoHandlerForMessageException extends \RuntimeException implements ExceptionInterface
17+
class NoHandlerForMessageException extends \LogicException implements ExceptionInterface
1818
{
1919
}

0 commit comments

Comments
 (0)
0