| java.lang.Object java.lang.Throwable java.lang.Exception javax.jms.JMSException
All known Subclasses: javax.jms.MessageNotWriteableException, javax.jms.IllegalStateException, javax.jms.TransactionRolledBackException, javax.jms.TransactionInProgressException, javax.jms.InvalidSelectorException, javax.jms.InvalidClientIDException, javax.jms.InvalidDestinationException, javax.jms.MessageNotReadableException, javax.jms.MessageEOFException, javax.jms.ResourceAllocationException, javax.jms.MessageFormatException, javax.jms.JMSSecurityException,
JMSException | public class JMSException extends Exception (Code) | | This is the root class of all JMS API exceptions.
It provides the following information:
- A provider-specific string describing the error. This string is
the standard exception message and is available via the
getMessage method.
- A provider-specific string error code
- A reference to another exception. Often a JMS API exception will
be the result of a lower-level problem. If appropriate, this
lower-level exception can be linked to the JMS API exception.
|
Constructor Summary | |
public | JMSException(String reason, String errorCode) Constructs a JMSException with the specified reason and
error code. | public | JMSException(String reason) Constructs a JMSException with the specified reason and with
the error code defaulting to null. |
JMSException | public JMSException(String reason, String errorCode)(Code) | | Constructs a JMSException with the specified reason and
error code.
Parameters: reason - a description of the exception Parameters: errorCode - a string specifying the vendor-specificerror code |
JMSException | public JMSException(String reason)(Code) | | Constructs a JMSException with the specified reason and with
the error code defaulting to null.
Parameters: reason - a description of the exception |
getErrorCode | public String getErrorCode()(Code) | | Gets the vendor-specific error code.
a string specifying the vendor-specificerror code |
getLinkedException | public Exception getLinkedException()(Code) | | Gets the exception linked to this one.
the linked Exception , null if none |
setLinkedException | public synchronized void setLinkedException(Exception ex)(Code) | | Adds a linked Exception .
Parameters: ex - the linked Exception |
|
|