LoginRadius / php-sdk

The LoginRadius PHP library will let you integrate LoginRadius' customer identity platform with your PHP application(s).
https://www.loginradius.com
MIT License
26 stars 38 forks source link

Exceptions in PHP SDK #8

Closed LC43 closed 5 years ago

LC43 commented 5 years ago

Hi,

What's the point of wrapping the calls with try catch the exceptions, if the apiClient always returns a value, and never, ever, an LoginRadiusException?

https://github.com/LoginRadius/php-sdk/blob/master/src/LoginRadiusSDK/Utility/Functions.php#L149

Agarwal-Sudhanshu commented 5 years ago

Hi Pedro,

The idea behind wrapping the calls with try-catch is to handle exceptions e.g.

Hope this will help.