add API for reporting library generic errors