aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider/oauth/service/facebook.php
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-08-24 22:12:44 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-08-24 22:14:21 -0400
commit7f6b2a984927915a70b8e03bbdddd00d73910436 (patch)
tree576646aba6bee2a4799521ad30785d53446a43df /phpBB/phpbb/auth/provider/oauth/service/facebook.php
parentd847df717573a55cc6e13211fbe853b4784cf53c (diff)
downloadforums-7f6b2a984927915a70b8e03bbdddd00d73910436.tar
forums-7f6b2a984927915a70b8e03bbdddd00d73910436.tar.gz
forums-7f6b2a984927915a70b8e03bbdddd00d73910436.tar.bz2
forums-7f6b2a984927915a70b8e03bbdddd00d73910436.tar.xz
forums-7f6b2a984927915a70b8e03bbdddd00d73910436.zip
[feature/oauth] OAuth service exception
PHPBB3-11673
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth/service/facebook.php')
-rw-r--r--phpBB/phpbb/auth/provider/oauth/service/facebook.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/service/facebook.php b/phpBB/phpbb/auth/provider/oauth/service/facebook.php
index b853c8c8a5..49206b7654 100644
--- a/phpBB/phpbb/auth/provider/oauth/service/facebook.php
+++ b/phpBB/phpbb/auth/provider/oauth/service/facebook.php
@@ -66,7 +66,7 @@ class phpbb_auth_provider_oauth_service_facebook extends phpbb_auth_provider_oau
{
if (!($this->service_provider instanceof \OAuth\OAuth2\Service\Facebook))
{
- throw new Exception('AUTH_PROVIDER_OAUTH_ERROR_INVALID_SERVICE_TYPE');
+ throw new phpbb_auth_provider_oauth_service_exception('AUTH_PROVIDER_OAUTH_ERROR_INVALID_SERVICE_TYPE');
}
// This was a callback request, get the token
@@ -86,7 +86,7 @@ class phpbb_auth_provider_oauth_service_facebook extends phpbb_auth_provider_oau
{
if (!($this->service_provider instanceof \OAuth\OAuth2\Service\Facebook))
{
- throw new Exception('AUTH_PROVIDER_OAUTH_ERROR_INVALID_SERVICE_TYPE');
+ throw new phpbb_auth_provider_oauth_service_exception('AUTH_PROVIDER_OAUTH_ERROR_INVALID_SERVICE_TYPE');
}
// Send a request with it