Hey, does ktor client have a sealed error hierarch...
# ktor
k
Hey, does ktor client have a sealed error hierarchy that can be catched and handled? I’m trying to have a single
apiCall
method, where I catch all possible error thrown by ktor, so that I can wrap it into my own error classes. Or maybe there is a list of known exceptions thrown?
👆 1
a
Unfortunately, Ktor does not have a sealed error hierarchy, so you have to handle Ktor's generic and engine-specific exceptions. There is an open feature request to address this issue.
k
Thanks for the info. Hopefully it would get some priority, as I think it is pretty desirable behavior from ktor 🙏