catch handler to an
await fetchProfile().catch((e) => handleFetchProfileError(e));
Note that this can be done outside (and without requiring) a
This can be specially useful when you'd want the execution to continue and/or
await expression individually (i.e., not only one single
a block of code).
Many thanks to all contributors in this Stack Overflow thread.