The type of the response data.
The host to use for the request.
The resource to request.
A promise that resolves with the response data or rejects with an error.
Use the tryExecute function instead and handle the error in the caller. This function is kept for backwards compatibility and will be removed in a future version.
Make a request and notify the user of any errors. This function is a wrapper around the tryExecute function and will notify the user of any errors. It is useful for making requests where you want to handle errors in a consistent way.