javax.jms
Class JMSException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.jms.JMSException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IllegalStateException, InvalidClientIDException, InvalidDestinationException, InvalidSelectorException, JMSSecurityException, MessageEOFException, MessageFormatException, MessageNotReadableException, MessageNotWriteableException, ResourceAllocationException, TransactionInProgressException, TransactionRolledBackException

public class JMSException
extends Exception

This is the root class of all JMS exceptions.

It provides following information:

Version:
$Revision: 1.3 $
Author:
Chris Kimpton (chris@kimptoc.net), Jason Dillon
See Also:
Serialized Form

Constructor Summary
JMSException(String reason)
          Construct a JMSException with reason and with error code defaulting to null.
JMSException(String reason, String errorCode)
          Construct a JMSException with reason and error code for exception
 
Method Summary
 String getErrorCode()
          Get the vendor specific error code.
 Exception getLinkedException()
          Get the exception linked to this one.
 void setLinkedException(Exception ex)
          Set the linked 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JMSException

public JMSException(String reason,
                    String errorCode)
Construct a JMSException with reason and error code for exception


JMSException

public JMSException(String reason)
Construct a JMSException with reason and with error code defaulting to null.

Method Detail

getErrorCode

public String getErrorCode()
Get the vendor specific error code.


getLinkedException

public Exception getLinkedException()
Get the exception linked to this one.


setLinkedException

public void setLinkedException(Exception ex)
Set the linked exception



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.