PyCodec_RegisterError

Register the _error handling callback function error under the given name. This function will be called by the codec when it encounters unencodable characters/undecodable bytes and doesn't know the callback _name, when name is specified as the error parameter in the call to the encode/decode function. Return 0 on success, -1 on _error

extern (C)
int
PyCodec_RegisterError
(
const(char)* name
,)

Meta