Exceptions: function x throws Exception

From: Date: Fri, 05 Aug 2005 11:06:06 +0000
Subject: Exceptions: function x throws Exception
Groups: php.general 
Request: Send a blank email to php-general+get-220057@lists.php.net to get a copy of this message
If there is a class with a function, that might throw exceptions and does NOT catch them, may I write that like in Java? class FooClass { public function foo() throws Exception { } } Or is there another possibility to tell a function throws an exception and to force the caller to handle that exception? thanks in advance, Norbert

« previous php.general (#220057) next »