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

Exception handling customization #898

Open
ShadowOfHeaven-Me opened this issue Jul 21, 2024 · 0 comments
Open

Exception handling customization #898

ShadowOfHeaven-Me opened this issue Jul 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ShadowOfHeaven-Me
Copy link
Contributor

Is your feature request related to a problem? Please describe.
PE always throws errors on invalid packets sent by the client, making packet analysers really annoying to create.

Describe the solution you'd like
Include the possibility to configure exception handling (in exceptionCaught of the decoder and encoder handlers) by including a class that'd accept Throwable, Thread & an ExceptionOrigin enum, that'd be either ENCODER or DECODER. Making it an enum enables scalability.
The Exception Handler would be configurable during PE instantiation.

@ShadowOfHeaven-Me ShadowOfHeaven-Me added the enhancement New feature or request label Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant