fix exception type in example

OAuthException has httpStatusCode and getHttpHeaders(). \Exception does not
This commit is contained in:
Steve Pavarno 2015-06-11 11:19:10 +12:00
parent bbad08607b
commit 8f8ea85261

View File

@ -47,7 +47,7 @@ $router->post('/access_token', function (Request $request) use ($server) {
]
);
} catch (\Exception $e) {
} catch (OAuthException $e) {
return new Response(
json_encode([