HybridIgniter icon indicating copy to clipboard operation
HybridIgniter copied to clipboard

How do I handle exceptions?

Open koichirose opened this issue 10 years ago • 0 comments

If a user denies access to his/her Facebook account, I need a way to display an error and redirect to another page.

I understand that hauth/endpoint executes the following command:

require_once APPPATH.'/third_party/hybridauth/index.php';

I don't want to edit third party files, so how am I supposed to handle that exception? Here it is: ( ! ) Fatal error: Uncaught exception 'Exception' with message 'Authentification failed! The user denied your request.' in /path/to/application/third_party/hybridauth/Hybrid/Auth.php on line 153

Thank you!

koichirose avatar Mar 10 '14 17:03 koichirose