<?php class a { public function test() { try { throw new Exception('Error!'); } catch(Exception $e) { $this->response($e); } } public function response($e) { echo $e->getMessage(); } } $a = new a; $a->test();
You have javascript disabled. You will not be able to edit any code.