getMessage(), "\n"; } } function trySzamol() { echo reciprok(0); } function reciprok($x) { if (!$x) { throw new Exception('Osztás 0-val'); } return 1/$x; }