public class JMSRuntimeException
extends java.lang.RuntimeException
In additional to the detailMessage and cause fields inherited from
Throwable
, this class also allows a provider-specific errorCode
to be set.
Constructor and Description |
---|
JMSRuntimeException(java.lang.String detailMessage)
Constructs a
JMSRuntimeException with the specified detail message |
JMSRuntimeException(java.lang.String detailMessage,
java.lang.String errorCode)
Constructs a
JMSRuntimeException with the specified detail message
and error code. |
JMSRuntimeException(java.lang.String detailMessage,
java.lang.String errorCode,
java.lang.Throwable cause)
Constructs a
JMSRuntimeException with the specified detail message,
error code and cause |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCode()
Returns the vendor-specific error code.
|
public JMSRuntimeException(java.lang.String detailMessage, java.lang.String errorCode)
JMSRuntimeException
with the specified detail message
and error code.detailMessage
- a description of the exceptionerrorCode
- a provider-specific error codepublic JMSRuntimeException(java.lang.String detailMessage)
JMSRuntimeException
with the specified detail messagedetailMessage
- a description of the exceptionpublic JMSRuntimeException(java.lang.String detailMessage, java.lang.String errorCode, java.lang.Throwable cause)
JMSRuntimeException
with the specified detail message,
error code and causedetailMessage
- a description of the exceptionerrorCode
- a provider-specific error codecause
- the underlying cause of this exception