1. /*
  2. * @(#)NO_RESOURCES.java 1.24 00/02/02
  3. *
  4. * Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package org.omg.CORBA;
  11. /**
  12. * The CORBA <code>NO_RESOURCES</code> exception, which is thrown
  13. * when either the client or the server does not have sufficient resources
  14. * to perform the request.
  15. * It contains a minor code, which gives more detailed information about
  16. * what caused the exception, and a completion status. It may also contain
  17. * a string describing the exception.
  18. *
  19. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  20. * Java IDL exceptions</A>
  21. * @version 1.17, 09/09/97
  22. * @since JDK1.2
  23. */
  24. public final class NO_RESOURCES extends SystemException {
  25. /**
  26. * Constructs a <code>NO_RESOURCES</code> exception with a default minor code
  27. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  28. * and a null description.
  29. */
  30. public NO_RESOURCES() {
  31. this("");
  32. }
  33. /**
  34. * Constructs a <code>NO_RESOURCES</code> exception with the specified description,
  35. * a minor code of 0, and a completion state of COMPLETED_NO.
  36. * @param s the String containing a description message
  37. */
  38. public NO_RESOURCES(String s) {
  39. this(s, 0, CompletionStatus.COMPLETED_NO);
  40. }
  41. /**
  42. * Constructs a <code>NO_RESOURCES</code> exception with the specified
  43. * minor code and completion status.
  44. * @param minor the minor code
  45. * @param completed the completion status
  46. */
  47. public NO_RESOURCES(int minor, CompletionStatus completed) {
  48. this("", minor, completed);
  49. }
  50. /**
  51. * Constructs a <code>NO_RESOURCES</code> exception with the specified description
  52. * message, minor code, and completion status.
  53. * @param s the String containing a description message
  54. * @param minor the minor code
  55. * @param completed the completion status
  56. */
  57. public NO_RESOURCES(String s, int minor, CompletionStatus completed) {
  58. super(s, minor, completed);
  59. }
  60. }