Allocates a buffer containing an <error> element.
Allocates a buffer containing an <error> element.Use bpc_buffer_destroy to deallocate the buffer returned, but only if it has not been used as a parameter to bpc_send. (If the channel instance is NULL, then use lib_free to free it.)