I understand that general case for catching general exception is:
do {
try yourmethod
} catch {
// handle error
}
But is there a way to get exception inside catch block. Also, this exception may be coming from swift code or underlying library so I would like a way to handle both. (I can add catch to handle swift errors but in this case I don't know the exception the method might throw).
Thanks.