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

Provide way to get non AnnotatedExceptions. #8120

Open
Mystiflow opened this issue Jul 10, 2018 · 2 comments
Open

Provide way to get non AnnotatedExceptions. #8120

Mystiflow opened this issue Jul 10, 2018 · 2 comments

Comments

@Mystiflow
Copy link

Mystiflow commented Jul 10, 2018

AbstractChannel wraps various exceptions into an annotated version:

protected final Throwable annotateConnectException(Throwable cause, SocketAddress remoteAddress) {

I am using a system to send this exception as a message inside a ChannelFutureListener to a client, but the annotated exception appends the remote address to the message. I do not want the client to see this remote address. I propose a way to retrieve the non annotated exception message in addition to the annotated exception.

Thanks.

@normanmaurer
Copy link
Member

@Mystiflow why not just replace the message by yourself ? Alternative we could allow to disable it via a system property.

@Mystiflow
Copy link
Author

I figured it was a hacky workaround and non future proof.

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

No branches or pull requests

2 participants