Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

If it possible in typescript to clone error with some modifications?

$
0
0

I stucked with an issue - I'm trying to use Sentry.captureException with received error, but before that i'm trying to change error message. Spent a lot of time to find an answer to my question, but i had no success.How could i create a new error with type Error | AxiosError and clone into that variable all the properties and change message? I can't use custom errors, because i don't want to change a lot of code.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>