public class JMSRuntimeException extends 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(String detailMessage)
Constructs a
JMSRuntimeException with the specified detail message |
JMSRuntimeException(String detailMessage,
String errorCode)
Constructs a
JMSRuntimeException with the specified detail message
and error code. |
JMSRuntimeException(String detailMessage,
String errorCode,
Throwable cause)
Constructs a
JMSRuntimeException with the specified detail message,
error code and cause |
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Returns the vendor-specific error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public JMSRuntimeException(String detailMessage, String errorCode)
JMSRuntimeException
with the specified detail message
and error code.detailMessage
- a description of the exceptionerrorCode
- a provider-specific error codepublic JMSRuntimeException(String detailMessage)
JMSRuntimeException
with the specified detail messagedetailMessage
- a description of the exceptionpublic JMSRuntimeException(String detailMessage, String errorCode, 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 exceptionpublic String getErrorCode()
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.