com.oracle.tuxedo.tjatmi
Class TuxATMITPReplyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.oracle.tuxedo.tjatmi.TuxATMITPException
              extended by com.oracle.tuxedo.tjatmi.TuxATMITPReplyException
All Implemented Interfaces:
java.io.Serializable

public final class TuxATMITPReplyException
extends TuxATMITPException

This class is the exception that represents a TuxATMITPException failure when there may also be user data on the exception that is thrown.

Author:
Oracle, Inc.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.oracle.tuxedo.tjatmi.TuxATMITPException
QMEABORTED, QMEBADMSGID, QMEBADQUEUE, QMEBADRMID, QMEINUSE, QMEINVAL, QMEINVHANDLE, QMENOMSG, QMENOSPACE, QMENOTOPEN, QMEOS, QMEPROTO, QMERELEASE, QMESHARE, QMESYSTEM, QMETRAN, QMNONE, TPEABORT, TPEBADDESC, TPEBLOCK, TPED_CLIENTDISCONNECTED, TPED_DECRYPTION_FAILURE, TPED_DECUTCM_FAILURE, TPED_DOMAINUNREACHABLE, TPED_GROUP_FORBIDDEN, TPED_INVALID_CERTIFICATE, TPED_INVALID_SIGNATURE, TPED_INVALID_XA_TRANSACTION, TPED_INVALIDCONTEXT, TPED_MAXVAL, TPED_MBCONV, TPED_NOCLIENT, TPED_NOUNSOLHANDLER, TPED_OTS_INTERNAL, TPED_PERM, TPED_RDMA_INVALIDQUEUE, TPED_RDMA_MSGQDAEMON, TPED_RDMA_NOMEMORY, TPED_SVCTIMEOUT, TPED_TERM, TPEDIAGNOSTIC, TPEEVENT, TPEHAZARD, TPEHEURISTIC, TPEINVAL, TPEITYPE, TPELIMIT, TPEMATCH, TPEMIB, TPENOENT, TPEOS, TPEOTYPE, TPEPERM, TPEPROTO, TPERELEASE, TPERMERR, TPESVCERR, TPESVCFAIL, TPESYSTEM, TPETIME, TPETRAN, TPGOTSIG, TPMINVAL
 
Constructor Summary
TuxATMITPReplyException(int err, int uerr, long urcode, long detail, long diagnostic, TuxATMIReply aRplyRtn)
          This constructor sets the reply errno as well as the data which goes along with it
TuxATMITPReplyException(int err, int uerr, long urcode, long detail, TuxATMIReply aRplyRtn)
          This constructor sets the reply errno as well as the data which goes along with it
TuxATMITPReplyException(int err, TuxATMIReply aRplyRtn)
          This is the constructor of the exception.
 
Method Summary
 TuxATMIReply getExceptionReply()
          Gets the data that goes along with this service failure
 
Methods inherited from class com.oracle.tuxedo.tjatmi.TuxATMITPException
getdiagnostic, gettperrno, gettperrordetail, gettpurcode, getTuxATMIReplyRtn, getUunixerr, toString, tpstrerror, tpstrerrordetail, tpstrerrordiagnostic
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TuxATMITPReplyException

public TuxATMITPReplyException(int err,
                               TuxATMIReply aRplyRtn)
                        throws TuxATMITPException
This is the constructor of the exception. err should either be TPESVCERR or TPESVCFAIL. The aRplyRtn can contain user data to be returned in the failure case, and the tpurcode to be returned.

Parameters:
err - Either TuxATMITPException.TPESVCERR or TuxATMITPException.TPESVCFAIL
aRplyRtn - Shall contain the return user data and tpurcode
Throws:
TuxATMITPException - The tperrno is set to TuxATMITPException.TPEINVAL if there is an invalid input

TuxATMITPReplyException

public TuxATMITPReplyException(int err,
                               int uerr,
                               long urcode,
                               long detail,
                               TuxATMIReply aRplyRtn)
This constructor sets the reply errno as well as the data which goes along with it

Parameters:
err - The TuxATMITPException value
uerr - The Uunixerr value
urcode - The tpurcode value
detail - The tperrordetail value
aRplyRtn - The data that was returned with this error

TuxATMITPReplyException

public TuxATMITPReplyException(int err,
                               int uerr,
                               long urcode,
                               long detail,
                               long diagnostic,
                               TuxATMIReply aRplyRtn)
This constructor sets the reply errno as well as the data which goes along with it

Parameters:
err - The TuxATMITPException value
uerr - The Uunixerr value
urcode - The tpurcode value
detail - The tperrordetail value
diagnostic - The diagnostic value
aRplyRtn - The data that was returned with this error
Method Detail

getExceptionReply

public TuxATMIReply getExceptionReply()
Gets the data that goes along with this service failure

Returns:
The data that goes along with this exception