Skip to content

Commit

Permalink
Bubbled ApiException.
Browse files Browse the repository at this point in the history
  • Loading branch information
m4tthumphrey committed Apr 15, 2012
1 parent 42df8ea commit 27f7dcb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/provider/oauth/dropbox.php
Expand Up @@ -21,6 +21,10 @@ public function callback($request)
throw new ApiException($data->error);
}
}
catch (ApiException $e)
{
throw $e;
}
catch (\Exception $e)
{
// TODO: Parse $e->getMessage() correctly
Expand Down
4 changes: 4 additions & 0 deletions classes/provider/oauth/tumblr.php
Expand Up @@ -30,6 +30,10 @@ public function callback($request)
throw new ApiException($data->meta->msg);
}
}
catch (ApiException $e)
{
throw $e;
}
catch (\Exception $e)
{
// TODO: Parse $e->getMessage() correctly
Expand Down
4 changes: 4 additions & 0 deletions classes/provider/oauth/twitter.php
Expand Up @@ -31,6 +31,10 @@ public function callback($request)
throw new ApiException($data->error);
}
}
catch (ApiException $e)
{
throw $e;
}
catch (\Exception $e)
{
// TODO: Parse $e->getMessage() correctly
Expand Down

0 comments on commit 27f7dcb

Please sign in to comment.