set_error_handler(function(){ print_r(func_get_args()); }); set_exception_handler(function($e){ echo $e->getMessage(); }); throw new \Exception('Bir hata yakaladım');