Top Description Fields Constructors Methods
javax.jms

public Class JMSRuntimeException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
javax.jms.JMSSecurityRuntimeException, javax.jms.MessageFormatRuntimeException, javax.jms.MessageNotWriteableRuntimeException, javax.jms.IllegalStateRuntimeException, javax.jms.InvalidClientIDRuntimeException, javax.jms.InvalidDestinationRuntimeException, javax.jms.InvalidSelectorRuntimeException, javax.jms.ResourceAllocationRuntimeException, javax.jms.TransactionInProgressRuntimeException, javax.jms.TransactionRolledBackRuntimeException

This is the root class of all unchecked exceptions in the JMS API.

In additional to the detailMessage and cause fields inherited from Throwable, this class also allows a provider-specific errorCode to be set.

Since
JMS 2.0
Version
JMS 2.0

Field Summary

Modifier and TypeField and Description
private String
errorCode

Provider-specific error code.

private static final long
serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

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

Constructor Summary

AccessConstructor and Description
public
JMSRuntimeException(String
a description of the exception
detailMessage
,
String
a provider-specific error code
errorCode
)

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

public
JMSRuntimeException(String
a description of the exception
detailMessage
)

Constructs a JMSRuntimeException with the specified detail message

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

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

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the provider-specific error code
getErrorCode
()

Returns the vendor-specific error code.

Field Detail

errorCodeback to summary
private String errorCode

Provider-specific error code.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

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

Constructor Detail

JMSRuntimeExceptionback to summary
public JMSRuntimeException(String detailMessage, String errorCode)

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

Parameters
detailMessage:String

a description of the exception

errorCode:String

a provider-specific error code

JMSRuntimeExceptionback to summary
public JMSRuntimeException(String detailMessage)

Constructs a JMSRuntimeException with the specified detail message

Parameters
detailMessage:String

a description of the exception

JMSRuntimeExceptionback to summary
public JMSRuntimeException(String detailMessage, String errorCode, Throwable cause)

Constructs a JMSRuntimeException 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

Method Detail

getErrorCodeback to summary
public String getErrorCode()

Returns the vendor-specific error code.

Returns:String

the provider-specific error code