Handle multiple exception types