You are here: Exceptions: function x throws Exception « PHP « IT news, forums, messages
Exceptions: function x throws Exception

Posted by Norbert Wenzel on 08/05/05 14:06

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация