|
Préférences
Moteurs de recherche
|
|||||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.jms
|
Constructor Summary | |
---|---|
JMSException(String reason)
Constructs a JMSException with the specified reason and with
the error code defaulting to null. |
|
JMSException(String reason,
String errorCode)
Constructs a JMSException with the specified reason and
error code. |
Method Summary | |
---|---|
String |
getErrorCode()
Gets the vendor-specific error code. |
Exception |
getLinkedException()
Gets the exception linked to this one. |
void |
setLinkedException(Exception ex)
Adds a 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 |
---|
public JMSException(String reason, String errorCode)
JMSException
with the specified reason and
error code.
reason
- a description of the exceptionerrorCode
- a string specifying the vendor-specific
error codepublic JMSException(String reason)
JMSException
with the specified reason and with
the error code defaulting to null.
reason
- a description of the exceptionMethod Detail |
---|
public String getErrorCode()
public Exception getLinkedException()
Exception
, null if nonepublic void setLinkedException(Exception ex)
Exception
.
ex
- the linked Exception