Top Description Fields Constructors Methods
javax.jms

public Class IllegalStateRuntimeException

extends JMSRuntimeException
Class Inheritance

This unchecked exception is thrown when a method is invoked at an illegal or inappropriate time or if the provider is not in an appropriate state for the requested operation, and the method signature does not permit a IllegalStateRuntimeException to be thrown. For example, this exception must be thrown if JMSContext.commit is called on a non-transacted session.
Since
JMS 2.0
Version
JMS 2.0

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides javax.jms.JMSRuntimeException.serialVersionUID.

Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the JMS 2.0 version

Constructor Summary

AccessConstructor and Description
public
IllegalStateRuntimeException(String
a description of the exception
detailMessage
)

Constructs a IllegalStateRuntimeException with the specified detail message

public
IllegalStateRuntimeException(String
a description of the exception
detailMessage
,
String
a provider-specific error code
errorCode
)

Constructs a IllegalStateRuntimeException with the specified detail message and error code.

public
IllegalStateRuntimeException(String
a description of the exception
detailMessage
,
String
a provider-specific error code
errorCode
,
Throwable
the underlying cause of this exception
cause
)

Constructs a IllegalStateRuntimeException with the specified detail message, error code and cause

Method Summary

Inherited from javax.jms.JMSRuntimeException:
getErrorCode

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.jms.JMSRuntimeException.serialVersionUID.

Explicitly set serialVersionUID to be the same as the implicit serialVersionUID of the JMS 2.0 version

Constructor Detail

IllegalStateRuntimeExceptionback to summary
public IllegalStateRuntimeException(String detailMessage)

Constructs a IllegalStateRuntimeException with the specified detail message

Parameters
detailMessage:String

a description of the exception

IllegalStateRuntimeExceptionback to summary
public IllegalStateRuntimeException(String detailMessage, String errorCode)

Constructs a IllegalStateRuntimeException with the specified detail message and error code.

Parameters
detailMessage:String

a description of the exception

errorCode:String

a provider-specific error code

IllegalStateRuntimeExceptionback to summary
public IllegalStateRuntimeException(String detailMessage, String errorCode, Throwable cause)

Constructs a IllegalStateRuntimeException with the specified detail message, error code and cause

Parameters
detailMessage:String

a description of the exception

errorCode:String

a provider-specific error code

cause:Throwable

the underlying cause of this exception