Exceptions

<< Click to Display Table of Contents >>

Navigation:  Dicas >

Exceptions

Previous pageReturn to chapter overviewNext page

try {
    throw new Exception("Deu um pau");
catch (Exception $ex) {
    echo "<p>{$ex->getMessage()}</p>";
}