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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -