update to check for OAuthException class