Exception : Try Catch ant Throw

for($a=0;$a<40;$a++){
    echo $a.", " ;
    try {
	if ($a == 32) {
	    throw new Exception ('A terrible error has occured', 42);
	} 
    } catch (Exception $e) {
	echo 'Exception ' . $e->getCode() . ':' 
	    . $e->getMessage()
	    . ' in ' . $e->getFile() . ' on line ' 
	    . $e->getLine() . '
'; } }
getCode() . ':' . $e->getMessage() . ' in ' . $e->getFile() . ' on line ' . $e->getLine() . '
'; } } ?>