Client.on_error()¶
- Client.on_error()
Decorator for handling new errors.
This does the same thing as
add_handler()using theErrorHandler.- Parameters:
errors (
Exception, optional) – Pass one or more errors to allow only a subset of errors to be passed in your function.group (
int, optional) – The group identifier, defaults to 0.