-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not log thrown Mistake
#1561
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1561 +/- ##
============================================
- Coverage 89.79% 89.77% -0.03%
+ Complexity 5023 5022 -1
============================================
Files 646 646
Lines 15759 15761 +2
Branches 921 921
============================================
- Hits 14151 14149 -2
- Misses 1276 1280 +4
Partials 332 332 |
Error
Mistake
@armiol, PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexander-yevsyukov LGTM except for a comment.
* <p>If {@link #dispatch(SignalEnvelope) dispatching} throws a {@link Mistake} it is rethrown. | ||
* Other types of exceptions are logged and then rethrown. | ||
* | ||
* <p>We treat {@link Error}s differently and want to void much of console output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We treat Mistake
s differently. Is that what you meant?
@alexander-yevsyukov also, the license report check failed. JFYI. |
There's still about |
* <p>We treat {@link Mistake}s differently and want to void much of console output | ||
* for this special case of exceptions. | ||
* Please see {@link io.spine.server.model.AbstractReceptor#invoke(Object, MessageEnvelope)} | ||
* for more details on special treatment of {@link Message} during dispatching. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be
for more details on special treatment of {@link Mistake} during dispatching.
@alexander-yevsyukov please see my last comment. It's not addressed yet. |
This PR updates the behaviour of
Bus.doPost()
to avoid logging instances ofMistake
thrown during dispatching.Also, the code of
AbstractReceptor
was updated to treat catchingMistake
in a special way, instead ofError
, as was done previously.