[Owncloud] Exception Handling
basari ari
basariofficial at gmail.com
Thu Nov 21 17:23:06 UTC 2013
Hello everyone,
I had a problem that i can`t catch the exception from my code in ownCloud.
here is the code :
try {
$client->refreshToken('xxxxx');
var_dump('success');
} catch (Exception $e) {
var_dump($e->getMessage());
}
I try this code outside ownCloud and ig can get the Exception:
Error refreshing the OAuth2 token, message: '{ "error" : "invalid_grant" }'
All this time i check the exception only from ownCloud.log in
settings/admin.
Actually is this some bug from ownCloud or there is an API/class that can
be used to get the Exception??
Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20131122/47f86c41/attachment.html>
More information about the Owncloud
mailing list