PyDocs

Nav

Binary Data Services

register_error

codecs

function
  • register_error(name, error_handler, /)
Register the specified error handler under the name errors.

handler must be a callable object, that will be called with an exception
instance containing information about the location of the
encoding/decoding error and must return a (replacement, new position)
tuple.
0 Examples
No examples for codecs/register_error.
See Also
No see-alsos for codecs/register_error
0 Notes
No notes for register_error