Re: Exceptions: function x throws Exception

From: Date: Fri, 05 Aug 2005 11:23:15 +0000
Subject: Re: Exceptions: function x throws Exception
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-220059@lists.php.net to get a copy of this message
Torgny Bjers wrote:
The Java way doesn't work here. The best approach would be to simply run a try/catch/finally around the call to your function/method, and inside the function itself you do the following: if (...) { throw new Exception("My message."); } }
Hello Torgny, Thanky you for your fast help. Greetings, Norbert

« previous php.general (#220059) next »