On Sunday 11 October 2009 6:09:46 pm Tommy Pham wrote:
> Lars,
>
> Here's a pseudo code:
>
> try {
> if (!$valid) {
> throw new Exception("Test failed.");
> } else {
>// do something
> }
> } catch (Exception $e) {
> // set/print a user friendly message to send to output
>
> // se
- Original Message
> From: Lars Nielsen
> To: php-general@lists.php.net
> Sent: Sun, October 11, 2009 2:18:03 PM
> Subject: [PHP] php exception handling
>
> Hi,
>
> I am trying to make an exception class that emails the errors to myself.
> I have started by using the example by ask at n
2 matches
Mail list logo