"must be caught or declared to be thrown"
"must be caught":
"or declared to be thrown":Code:try{ WalkingHandler.getSingleton().initialize(); }catch(Exception e){ e.printStackTrace(); }
Code:public void initialize() throws Exception {
|
anyone can solve?Code:src\server\Server.java:106: unreported exception java.lang.Exception; must be ca ught or declared to be thrown WalkingHandler.getSingleton().initialize(); ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Press any key to continue . . .
"must be caught or declared to be thrown"
"must be caught":
"or declared to be thrown":Code:try{ WalkingHandler.getSingleton().initialize(); }catch(Exception e){ e.printStackTrace(); }
Code:public void initialize() throws Exception {
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |