1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.jms;
  6. /**
  7. * <P>This exception is thrown when a provider is unable to allocate the
  8. * resources required by a method. For example, this exception should be
  9. * thrown when a call to
  10. * <CODE>TopicConnectionFactory.createTopicConnection</CODE> fails due to a
  11. * lack of JMS provider resources.
  12. *
  13. * @version 26 August 1998
  14. * @author Rahul Sharma
  15. **/
  16. public class ResourceAllocationException extends JMSException {
  17. /** Constructs a <CODE>ResourceAllocationException</CODE> with the specified
  18. * reason and error code.
  19. *
  20. * @param reason a description of the exception
  21. * @param errorCode a string specifying the vendor-specific
  22. * error code
  23. *
  24. **/
  25. public
  26. ResourceAllocationException(String reason, String errorCode) {
  27. super(reason, errorCode);
  28. }
  29. /** Constructs a <CODE>ResourceAllocationException</CODE> with the specified
  30. * reason. The error code defaults to null.
  31. *
  32. * @param reason a description of the exception
  33. **/
  34. public
  35. ResourceAllocationException(String reason) {
  36. super(reason);
  37. }
  38. }