public class JMSException extends Exception
This is the root class of all JMS API exceptions.
It provides the following information:
getMessage
method.
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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 . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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 exceptionpublic String getErrorCode()
public Exception getLinkedException()
Exception
, null if nonepublic void setLinkedException(Exception ex)
Exception
.ex
- the linked Exception
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.