Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. class main {
  2.     public function __call($name, $args) {
  3.         throw new Exception("Failed to call specified function");
  4.     }
  5. }
  6.  
  7. $app = new main();
  8. try {
  9.     $app->doesntexist();
  10. } catch (Exception $e) {
  11.     print $e->getMessage();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement