Top Description Fields Constructors Methods
jakarta.jms

public Class ResourceAllocationRuntimeException

extends JMSRuntimeException
Class Inheritance

This unchecked exception is thrown when a provider is unable to allocate the resources required by a method.

For example, this exception should be thrown when a call to ConnectionFactory.createContext fails due to a lack of Jakarta Messaging provider resources.

Since
JMS 2.0
Version
Jakarta Messaging 2.0

Field Summary

Modifier and TypeField and Description
private static final long
serialVersionUID

Hides jakarta.jms.JMSRuntimeException.serialVersionUID.

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

Constructor Summary

AccessConstructor and Description
public
ResourceAllocationRuntimeException(String
a description of the exception
reason
,
String
a string specifying the vendor-specific error code
errorCode
)

Constructs a ResourceAllocationRuntimeException with the specified reason and error code.

public
ResourceAllocationRuntimeException(String
a description of the exception
reason
)

Constructs a ResourceAllocationRuntimeException with the specified reason.

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

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

Method Summary

Inherited from jakarta.jms.JMSRuntimeException:
getErrorCode

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.jms.JMSRuntimeException.serialVersionUID.

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

Constructor Detail

ResourceAllocationRuntimeExceptionback to summary
public ResourceAllocationRuntimeException(String reason, String errorCode)

Constructs a ResourceAllocationRuntimeException with the specified reason and error code.

Parameters
reason:String

a description of the exception

errorCode:String

a string specifying the vendor-specific error code

ResourceAllocationRuntimeExceptionback to summary
public ResourceAllocationRuntimeException(String reason)

Constructs a ResourceAllocationRuntimeException with the specified reason. The error code defaults to null.

Parameters
reason:String

a description of the exception

ResourceAllocationRuntimeExceptionback to summary
public ResourceAllocationRuntimeException(String detailMessage, String errorCode, Throwable cause)

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