note 95060 modified in class.exception by thiago

From: Date: Mon, 28 Nov 2011 11:56:34 +0000
Subject: note 95060 modified in class.exception by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184721@lists.php.net to get a copy of this message
To generate an exception use: <?php throw new Exception("Message to display"); ?> By default it will be shown to the user. Use Try...catch to handle it. [EDITOR thiago NOTE: this notes has improvements sent by "sohug"] --was-- To generate an exception use: <?php Throw new Exception("Message to display"); ?> By default it will be shown to the user. Use Try...catch to handle it. http://php.net/manual/en/class.exception.php

« previous php.notes (#184721) next »