Novell exteNd Messaging Platform 5.2

com.sssw.jms.api
Class JMQXAException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.transaction.xa.XAException
              extended bycom.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

Field Summary
 
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
 
Constructor Summary
JMQXAException(Exception ex)
          Construct a new JMQXAException object.
JMQXAException(int errorCode)
          Construct a new JMQXAException object.
JMQXAException(String reason)
          Construct a new JMQXAException object.
 
Method Summary
 int getErrorCode()
          Get the error code for this exception
 Exception getLinkedException()
          Get the exception linked to this exception.
 void setLinkedException(Exception ex)
          Set the exception linked to this 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
 

Constructor Detail

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:
errorCode - the exception's error code
Method Detail

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.

Novell exteNd Messaging Platform 5.2

exteNd is a registered trademark of Novell, Inc.
Copyright 1998-2004 Novell, Inc. All Rights Reserved.