Error Handling

All the methods return Promises so make sure you use try and catch block with async function or .then() , .catch() to handle success and error cases, respectively. In the event of an error, the error message can be retrieved using catch