bea.jolt
Class ApplicationException

java.lang.Object
  java.lang.Throwable
      java.lang.Exception
          java.lang.RuntimeException
              bea.jolt.ApplicationException
All Implemented Interfaces:
java.io.Serializable

public class ApplicationException
extends java.lang.RuntimeException

The ApplicationException class is used by the JoltRemoteService class and its methods. The ApplicationException is thrown only when the service calls a tpreturn(3) (for example, TPFAIL, tpurcode).

See Also:
Serialized Form

Method Summary
 int getApplicationCode()
          The getApplicationCode method gets the application code.
 java.lang.Object getObject()
          The getObject method gets the object that throws the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getApplicationCode

public int getApplicationCode()
The getApplicationCode method gets the application code. This is equivalent to the tpurcode in ATMI.


getObject

public java.lang.Object getObject()
The getObject method gets the object that throws the exception. In Jolt 1.2, the object retrieved by getObject is an instance of the JoltRemoteService class. The caller can still use this object to retrieve all the output parameters. See getStringDef() or similar methods in the JoltRemoteService class.