1 22 package org.jboss.test.excepiiop.ejb; 23 24 import javax.ejb.EJBException ; 25 26 import org.jboss.test.util.ejb.SessionSupport; 27 import org.jboss.test.excepiiop.interfaces.ExceptionThrower; 28 import org.jboss.test.excepiiop.interfaces.JavaException; 29 import org.jboss.test.excepiiop.interfaces.IdlException; 30 31 public class ExceptionThrowerBean 32 extends SessionSupport 33 { 34 public void throwException(int i) 35 throws JavaException,IdlException 36 { 37 if (i > 0) 38 throw new JavaException(i, "" + i + " is positive"); 39 else if (i < 0) 40 throw new IdlException(i, "" + i + " is negative"); 41 else 42 return; } 44 } 45 | Popular Tags |