Add check for OAuthException class exists
Merge pull request #298 from snirs90/OAuthException-check

Add check for OAuthException class exists