« first day (68 days earlier)      last day (157 days later) » 

06:36
I am calling an asynchronus function and from within that function want to throw an error. But I want to handle this error from the catch block of calling function
something like this
this.initialize()
.then('something')
.catch('handle error here');
where initialize is an async function and I need to throw the error from within it
06:53
@JupiterAmy : if you are using then and catch, it's no essmtial to use async and await. only follow this format:
function()
.then( ...)
.catch(e => console.log(e))

« first day (68 days earlier)      last day (157 days later) »