[Owncloud] Exception Handling
Andreas Fischer
bantu at owncloud.com
Thu Nov 21 21:23:54 UTC 2013
Hey,
just a shot in the dark: ownCloud is using namespacing, so this may have
to be "catch (\Exception $e)" in order to work correctly.
Cheers,
Andreas
On 21/11/13 18:23, basari ari wrote:
> 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,
>
>
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>
More information about the Owncloud
mailing list