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
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