java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--javax.jms.JMSException
This is the root class of all JMS API exceptions.
It provides the following information:
getMessage
method.JMSException(java.lang.String reason) Constructs a JMSException with the specified reason and with the error code defaulting to null. | |
JMSException(java.lang.String reason, java.lang.String errorCode) Constructs a JMSException with the specified reason and error code. |
getErrorCode() Gets the vendor-specific error code. | |
getLinkedException() Gets the exception linked to this one. | |
setLinkedException(java.lang.Exception ex) Adds a linked Exception . |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
publicJMSException(java.lang.String reason, java.lang.String errorCode)
JMSException
with the specified reason and error code.reason
- a description of the exceptionerrorCode
- a string specifying the vendor-specific error codepublicJMSException(java.lang.String reason)
JMSException
with the specified reason and with the error code defaulting to null.reason
- a description of the exceptionpublic java.lang.StringgetErrorCode()
public java.lang.ExceptiongetLinkedException()
Exception
, null if nonepublic voidsetLinkedException(java.lang.Exception ex)
Exception
.ex
- the linkedException