public class ResourceAllocationRuntimeException extends JMSRuntimeException
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 JMS provider resources.
Constructor and Description |
---|
ResourceAllocationRuntimeException(String reason)
Constructs a
ResourceAllocationRuntimeException with the specified
reason. |
ResourceAllocationRuntimeException(String reason,
String errorCode)
Constructs a
ResourceAllocationRuntimeException with the specified
reason and error code. |
ResourceAllocationRuntimeException(String detailMessage,
String errorCode,
Throwable cause)
Constructs a
ResourceAllocationRuntimeException with the specified detail message,
error code and cause |
getErrorCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResourceAllocationRuntimeException(String reason, String errorCode)
ResourceAllocationRuntimeException
with the specified
reason and error code.reason
- a description of the exceptionerrorCode
- a string specifying the vendor-specific
error codepublic ResourceAllocationRuntimeException(String reason)
ResourceAllocationRuntimeException
with the specified
reason. The error code defaults to null.reason
- a description of the exceptionpublic ResourceAllocationRuntimeException(String detailMessage, String errorCode, Throwable cause)
ResourceAllocationRuntimeException
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-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.