2011-06-10 32 views

回答

3

你需要把super调用构造函数中。

+0

谢谢,非常完美:)忘了这一点 – 2011-06-10 04:02:03

7

应该

class UndefinedException extends Exception { 

     public UndefinedException() { 
      super("Its not defined!"); 
     } 

} 
+1

+1进行适当的编码规范也(驼峰) – pap 2011-06-10 06:16:45