throwing exceptions in onModuleLoad

2009-04-26 Thread Piotr Jaroszyński
Hello, how come I can't throw exceptions in onModuleLoad while some GWT functions called from it can? E.g. Composite::initWidget can throw an exception but doesn't specify that in its signature. How is gwt compiled that it's not an error? Sorry if it's covered somewhere already. -- Best

Re: throwing exceptions in onModuleLoad

2009-04-26 Thread Isaac Truett
http://www.google.com/search?q=unchecked+exception 2009/4/26 Piotr Jaroszyński p.jaroszyn...@gmail.com: Hello, how come I can't throw exceptions in onModuleLoad while some GWT functions called from it can? E.g. Composite::initWidget can throw an exception but doesn't specify that in its

Re: throwing exceptions in onModuleLoad

2009-04-26 Thread Piotr Jaroszyński
http://www.google.com/search?q=unchecked+exception Thanks, apparently I fail at java :) -- Best Regards, Piotr Jaroszyński --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Re: throwing exceptions in onModuleLoad

2009-04-26 Thread Vitali Lovich
By the way, it's really bad style to throw an exception in onModuleLoad - it indicates you are doing something wrong. 2009/4/26 Piotr Jaroszyński p.jaroszyn...@gmail.com http://www.google.com/search?q=unchecked+exception Thanks, apparently I fail at java :) -- Best Regards, Piotr