exceptions/api_exception library