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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to