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

How to create error handler in Class based Namespace #832

Open
codyleyhan opened this issue Nov 13, 2018 · 3 comments
Open

How to create error handler in Class based Namespace #832

codyleyhan opened this issue Nov 13, 2018 · 3 comments
Assignees

Comments

@codyleyhan
Copy link

Hello, I am trying to use a class based namespace and would like to have my error handler in that class, I have a function named on_error(self, e) as well as trying on_error_default(self, e) but neither seem to work, is there any way to have the error handler in the class?

@miguelgrinberg
Copy link
Owner

Errors are not dispatched to class based namespaces at this time. You can workaround this limitation by creating an error handler that invokes the on_error() method in your namespace.

It's a good feature, though.

@joshbriegal
Copy link

@codyleyhan @miguelgrinberg any updates on this issue since #834 was closed last summer? I'm attempting to implement error handling in the on_connect of a custom namespace and think I'm running into this issue.

@miguelgrinberg
Copy link
Owner

@joshbriegal no updates. The PR was incomplete and the author did not respond to my feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants