public class TuxATMITPException extends java.lang.Exception implements TuxATMIExceptionCode, java.io.Serializable
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_MINVAL, TPED_NOCLIENT, TPED_NOUNSOLHANDLER, TPED_OTS_INTERNAL, TPED_PERM, TPED_RDMA_INVALIDQUEUE, TPED_RDMA_MSGQDAEMON, TPED_RDMA_NOMEMORY, TPED_SVCTIMEOUT, TPED_TERM, TPEDIAGNOSTIC, TPEEVENT, TPEFWDNOENT, TPEFWDOUTRPLY, TPEHAZARD, TPEHEURISTIC, TPEINVAL, TPEITYPE, TPELIMIT, TPEMATCH, TPEMIB, TPENOENT, TPEOS, TPEOTYPE, TPEPERM, TPEPROTO, TPERELEASE, TPERMERR, TPERTNOUTRPLY, TPESVCERR, TPESVCFAIL, TPESYSTEM, TPETIME, TPETRAN, TPGOTSIG, TPMAXVAL, TPMINVAL
Constructor and Description |
---|
TuxATMITPException()
The default constructor leaves all errno values set to 0
|
TuxATMITPException(int tperrno)
This constructor sets the tperrno value
|
TuxATMITPException(int tperrno,
int Uunixerr,
long tpurcode,
long tperrordetail)
This constructor sets all of the errno values
|
TuxATMITPException(int tperrno,
int Uunixerr,
long tpurcode,
long tperrordetail,
long diagnostic)
This constructor sets all of the errno values
|
TuxATMITPException(int tperrno,
int Uunixerr,
long tpurcode,
long tperrordetail,
long diagnostic,
TuxATMIReply aRplyRtn)
This constructor sets all of the errno values and the reply object
|
TuxATMITPException(int tperrno,
int Uunixerr,
long tpurcode,
long tperrordetail,
java.lang.String expl)
This constructor sets all of the errno values and an explanation string
|
TuxATMITPException(int tperrno,
int Uunixerr,
long tpurcode,
long tperrordetail,
TuxATMIReply aRplyRtn)
This constructor sets all of the errno values and the reply object
|
TuxATMITPException(int tperrno,
int tperrdetail,
java.lang.String explain)
This constructor sets the tperrno , tperrordetail value and an explanation string
|
TuxATMITPException(int tperrno,
long diag,
java.lang.String explain)
This constructor sets the tperrno value, diagnostic value, and an
explanation string.
|
TuxATMITPException(int tperrno,
java.lang.String explain)
This constructor sets the tperrno value and an explanation string
|
Modifier and Type | Method and Description |
---|---|
long |
getdiagnostic()
Gets the queue diagnostic associated with this exception.
|
int |
gettperrno()
Gets the tperrno number associated with this exception
|
long |
gettperrordetail()
Gets the tperrordetail associated with this exception
|
long |
gettpurcode()
Gets the tpurcode associated with this exception
|
TuxATMIReply |
getTuxATMIReplyRtn()
Gets the data that goes along with this service failure
|
int |
getUunixerr()
Gets the Uunixerr number associated with this exception
|
java.lang.String |
toString()
Prints the exception in the following manner:
[explanation:]tperrno:Uunixerr:tpurcode:tperrordetail:diagnostic
|
static java.lang.String |
tpstrerror(int errno)
Returns a string version of the tperrno error number given
|
static java.lang.String |
tpstrerrordetail(long detailerrno)
Returns a string version of the tperrordetail error number given
|
static java.lang.String |
tpstrerrordiagnostic(long diagnostic)
Returns a string version of the diagnostic error number given
|
public TuxATMITPException()
public TuxATMITPException(int tperrno)
tperrno
- The tperrno valuepublic TuxATMITPException(int tperrno, java.lang.String explain)
tperrno
- The tperrno valueexplain
- A text explanation for the errorpublic TuxATMITPException(int tperrno, long diag, java.lang.String explain)
tperrno
- The tperrno value.diag
- The diagnostic value.explain
- A text explanation for the error.public TuxATMITPException(int tperrno, int tperrdetail, java.lang.String explain)
tperrno
- The tperrno valuetperrdetail
- The tperrordetail valueexplain
- A text explanation for the errorpublic TuxATMITPException(int tperrno, int Uunixerr, long tpurcode, long tperrordetail)
tperrno
- The tperrno valueUunixerr
- The Uunixerr valuetpurcode
- The tpurcode valuetperrordetail
- The tperrordetail valuepublic TuxATMITPException(int tperrno, int Uunixerr, long tpurcode, long tperrordetail, TuxATMIReply aRplyRtn)
tperrno
- The tperrno valueUunixerr
- The Uunixerr valuetpurcode
- The tpurcode valuetperrordetail
- The tperrordetail valueaRplyRtn
- The reply objectpublic TuxATMITPException(int tperrno, int Uunixerr, long tpurcode, long tperrordetail, long diagnostic)
tperrno
- The tperrno valueUunixerr
- The Uunixerr valuetpurcode
- The tpurcode valuetperrordetail
- The tperrordetail valuediagnostic
- The diagnostic valuepublic TuxATMITPException(int tperrno, int Uunixerr, long tpurcode, long tperrordetail, long diagnostic, TuxATMIReply aRplyRtn)
tperrno
- The tperrno valueUunixerr
- The Uunixerr valuetpurcode
- The tpurcode valuetperrordetail
- The tperrordetail valuediagnostic
- The diagnostic valueaRplyRtn
- The reply objectpublic TuxATMITPException(int tperrno, int Uunixerr, long tpurcode, long tperrordetail, java.lang.String expl)
tperrno
- The tperrno valueUunixerr
- The Uunixerr valuetpurcode
- The tpurcode valuetperrordetail
- The tperrordetail valueexpl
- A text explanation stringpublic int gettperrno()
public int getUunixerr()
public long gettpurcode()
public long gettperrordetail()
public long getdiagnostic()
public TuxATMIReply getTuxATMIReplyRtn()
public static java.lang.String tpstrerror(int errno)
errno
- The tperrno for which to get a string representationpublic static java.lang.String tpstrerrordetail(long detailerrno)
detailerrno
- The tperrordetail for which to get a string representationpublic static java.lang.String tpstrerrordiagnostic(long diagnostic)
diagnostic
- The diagnostic for which to get a string representationpublic java.lang.String toString()
toString
in class java.lang.Throwable