java - base class for all exception in PHP -
i wanted know base class exception in php, have exception
class in java , classes inherited it,the reason want know while working on facebook
app in php , want catch fbapiexception
in class object,
try { $accesstoken = $facebook->getaccesstoken(); $userdata= $facebook->api('/me', 'get' ,array ('access_token' => $accesstoken)); $email= $facebook->api('/me?fields=email', 'get' ,array ('access_token' => $accesstoken)); } catch(exception $e) { return false; }
so if exception occur , catch that.
Comments
Post a Comment