com.sssw.jms.api
Class JMQXAException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--javax.transaction.xa.XAException
|
+--com.sssw.jms.api.JMQXAException
- All Implemented Interfaces:
- Serializable
- public class JMQXAException
- extends XAException
This exception extends javax.transaction.xa.XAException
to provide additional information about an XA exception. It supports
an API similar to java.jms.JMSException
to get an error
code and a linked exception, if any.
- Since:
- jBroker MQ 1.3
- See Also:
- Serialized Form
Fields inherited from class javax.transaction.xa.XAException |
errorCode, XA_HEURCOM, XA_HEURHAZ, XA_HEURMIX, XA_HEURRB, XA_NOMIGRATE, XA_RBBASE, XA_RBCOMMFAIL, XA_RBDEADLOCK, XA_RBEND, XA_RBINTEGRITY, XA_RBOTHER, XA_RBPROTO, XA_RBROLLBACK, XA_RBTIMEOUT, XA_RBTRANSIENT, XA_RDONLY, XA_RETRY, XAER_ASYNC, XAER_DUPID, XAER_INVAL, XAER_NOTA, XAER_OUTSIDE, XAER_PROTO, XAER_RMERR, XAER_RMFAIL |
JMQXAException
public JMQXAException(Exception ex)
- Construct a new
JMQXAException
object.
- Parameters:
ex
- The linked exception.
JMQXAException
public JMQXAException(String reason)
- Construct a new
JMQXAException
object.
- Parameters:
reason
- the reason for the exception
JMQXAException
public JMQXAException(int errorCode)
- Construct a new
JMQXAException
object.
- Parameters:
reason
- the reason for the exceptionerrorCode
- the exception's error code
getErrorCode
public int getErrorCode()
- Get the error code for this exception
- Returns:
- the exception's error code
getLinkedException
public Exception getLinkedException()
- Get the exception linked to this exception. The linked exception
is typically the real cause.
- Returns:
- The linked exception, or null if no linked exception was set.
setLinkedException
public void setLinkedException(Exception ex)
- Set the exception linked to this exception.
- Parameters:
ex
- The linked exception.
jBroker is a registered trademark of Novell, Inc.
Copyright 1998-2003 Novell, Inc. All Rights Reserved.