01: /*
02: * @(#)ResourceAllocationException.java 1.6 02/04/09
03: *
04: * Copyright 1997-2002 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * SUN PROPRIETARY/CONFIDENTIAL.
07: * This software is the proprietary information of Sun Microsystems, Inc.
08: * Use is subject to license terms.
09: *
10: */
11:
12: package javax.jms;
13:
14: /**
15: * <P>This exception is thrown when a provider is unable to allocate the
16: * resources required by a method. For example, this exception should be
17: * thrown when a call to
18: * <CODE>TopicConnectionFactory.createTopicConnection</CODE> fails due to a
19: * lack of JMS provider resources.
20: *
21: * @version 26 August 1998
22: * @author Rahul Sharma
23: **/
24:
25: public class ResourceAllocationException extends JMSException {
26:
27: /** Constructs a <CODE>ResourceAllocationException</CODE> with the specified
28: * reason and error code.
29: *
30: * @param reason a description of the exception
31: * @param errorCode a string specifying the vendor-specific
32: * error code
33: *
34: **/
35: public ResourceAllocationException(String reason, String errorCode) {
36: super (reason, errorCode);
37: }
38:
39: /** Constructs a <CODE>ResourceAllocationException</CODE> with the specified
40: * reason. The error code defaults to null.
41: *
42: * @param reason a description of the exception
43: **/
44: public ResourceAllocationException(String reason) {
45: super(reason);
46: }
47:
48: }
|