[jboss-user] [JBoss Seam] - Re: noobie->how to write custom exception

thejavafreak do-not-reply at jboss.com
Tue Oct 16 22:17:24 EDT 2007


In your try block there must be a method that throws MyException. Please revise as such:


  | public void anotherMethod() throws MyException{
  |   
  | }
  | 


  | 
  | public void myMethod() {
  |     	try {
  | anotherMethod();
  | 		}
  | 		catch (MyException e) {
  | 
  | 		}
  | 	}	
  | 

Really this has got nothing to do with Seam :)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095861#4095861

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095861



More information about the jboss-user mailing list