throw DeadlineExpiredException when deadline expiration is realized#16
throw DeadlineExpiredException when deadline expiration is realized#16
Conversation
Generate changelog in
|
| public boolean isInternal() { | ||
| return internal; | ||
| } |
There was a problem hiding this comment.
We could alternatively handle this as two nested subclasses, like QosException. Not entirely clear which option is best in this case, but we have some time to think about it
There was a problem hiding this comment.
yeah i considered that, i don't have strong opinions either way. I do tend to prefer encoding something like this as a type, rather than a field.
b25cc24 to
f77d4c2
Compare
| /** | ||
| * Indicates that a deadline has expired. | ||
| */ | ||
| public abstract class DeadlineExpiredException extends RuntimeException { |
There was a problem hiding this comment.
perhaps we should split this class out into a separate PR so that we can publish it in the API for this library and allow consumers to adopt logic that handles these exception types before we merge a change to actually throw the exception
There was a problem hiding this comment.
Makes sense to me!
can we make this a sealed type? We should also implement SafeLoggable imo
There was a problem hiding this comment.
is there much utility in having a base type at all here?
cb0248c to
1bfe002
Compare
2756993 to
6a42e2e
Compare
1bfe002 to
0466b1c
Compare
Generate changelog in
|
No description provided.