1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.resource.spi;
  6. /**A ResourceAllocationException can be thrown by an application server or
  7. * resource adapter to indicate any failure to allocate system resources
  8. * (example: threads, physical connections). An example is error condition
  9. * when an upper bound is reached on the maximum number of physical
  10. * connections that can be managed by an application server specific
  11. * connection pool.
  12. * @version 0.7
  13. * @author Rahul Sharma
  14. */
  15. public class ResourceAllocationException extends javax.resource.ResourceException {
  16. /**
  17. * Create a ResourceAllocationException.
  18. *
  19. * @param reason a description of the exception
  20. * @param errorCode a string specifying the vendor specific
  21. * error code
  22. **/
  23. public
  24. ResourceAllocationException(String reason, String errorCode) {
  25. super(reason, errorCode);
  26. }
  27. /**
  28. * Create a ResourceAllocationException with reason.
  29. *
  30. * @param reason a description of the exception
  31. **/
  32. public
  33. ResourceAllocationException(String reason) {
  34. super(reason);
  35. }
  36. }