Skip to content
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

fix #368 Throw a marker exception with local address information when server bind fails #396

Closed
wants to merge 1 commit into from

Conversation

violetagg
Copy link
Member

No description provided.

@violetagg violetagg requested a review from smaldini July 23, 2018 15:10
@violetagg violetagg added this to the 0.8.0.M1 milestone Jul 23, 2018
Throwable t = f.cause();
if (t != null) {
if (t instanceof BindException) {
t = new DisposableServerBindException(t.getMessage() + " " + localAddress, localAddress);
Copy link
Contributor

@simonbasle simonbasle Jul 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to craft a dedicated message for the DSBE that is more explicit and keep the original BindException as a cause?
(here we completely lose the stacktrace, but maybe the BindException has no fillInStackTrace either?)

@violetagg
Copy link
Member Author

Close in favour of #398

@violetagg violetagg closed this Jul 24, 2018
@violetagg violetagg deleted the issue-368 branch July 24, 2018 14:17
@violetagg violetagg mentioned this pull request Jul 26, 2018
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants