Package org.jboss.test.iiop.interfaces

Examples of org.jboss.test.iiop.interfaces.NegativeArgumentException


                    getInitialContext().lookup(StatelessSessionHome.JNDI_NAME),
                    StatelessSessionHome.class);
      StatelessSession session = home.create();
      //----------------------------------------------------------------------
      java.lang.Object obj = session.getException();
      NegativeArgumentException na = (NegativeArgumentException)obj;
      assertEquals(-7777, na.getNegativeArgument());
      //----------------------------------------------------------------------
      session.remove();
   }
View Full Code Here


      throws NegativeArgumentException
   {
      if (i >= 0)
         return "#" + i;
      else
         throw new NegativeArgumentException(i);
   }
View Full Code Here

   public Object getException()
   {
      Object obj = null;
      try
         {
            NegativeArgumentException e = new NegativeArgumentException(-7777);
            throw e;
         }
      catch (NegativeArgumentException e)
         {
            obj = e;
View Full Code Here

TOP

Related Classes of org.jboss.test.iiop.interfaces.NegativeArgumentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.