public class IllegalStateRuntimeException extends JMSRuntimeException
IllegalStateRuntimeException
to be thrown. For example, this
exception must be thrown if JMSContext.commit
is called on a
non-transacted session.Constructor and Description |
---|
IllegalStateRuntimeException(String detailMessage)
Constructs a
IllegalStateRuntimeException with the specified detail message |
IllegalStateRuntimeException(String detailMessage,
String errorCode)
Constructs a
IllegalStateRuntimeException with the specified detail message
and error code. |
IllegalStateRuntimeException(String detailMessage,
String errorCode,
Throwable cause)
Constructs a
IllegalStateRuntimeException with the specified detail message,
error code and cause |
getErrorCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IllegalStateRuntimeException(String detailMessage)
IllegalStateRuntimeException
with the specified detail messagedetailMessage
- a description of the exceptionpublic IllegalStateRuntimeException(String detailMessage, String errorCode)
IllegalStateRuntimeException
with the specified detail message
and error code.detailMessage
- a description of the exceptionerrorCode
- a provider-specific error codepublic IllegalStateRuntimeException(String detailMessage, String errorCode, Throwable cause)
IllegalStateRuntimeException
with the specified detail message,
error code and causedetailMessage
- a description of the exceptionerrorCode
- a provider-specific error codecause
- the underlying cause of this exceptionCopyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.