<?php try { throw new Exeption('Wystąpil okropny wyjątek', 42); } catch( Exeption $e ) { echo 'Wyjątek '.$e->getCode().': '.$e->getMessage().' w pliku '.$e->getFile().' w wierszu '.$e->getLine(); } ?>
Po odpaleniu skryptu pojawia się błąd:
Cytat
Fatal error: Class 'Exeption' not found in c:\wamp\www\exeption\index.php on line 5