1. /*
  2. * @(#)NO_MEMORY.java 1.30 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * Exception thrown when the ORB run time has run out of memory.
  10. * <P>
  11. * It contains a minor code, which gives more detailed information about
  12. * what caused the exception, and a completion status. It may also contain
  13. * a string describing the exception.
  14. *
  15. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  16. * Java IDL exceptions</A>
  17. * @version 1.18, 09/09/97
  18. * @since JDK1.2
  19. */
  20. public final class NO_MEMORY extends SystemException {
  21. /**
  22. * Constructs a <code>NO_MEMORY</code> exception with a default minor code
  23. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  24. * and a null description.
  25. */
  26. public NO_MEMORY() {
  27. this("");
  28. }
  29. /**
  30. * Constructs a <code>NO_MEMORY</code> exception with the specified description message,
  31. * a minor code of 0, and a completion state of COMPLETED_NO.
  32. * @param s the String containing a description message
  33. */
  34. public NO_MEMORY(String s) {
  35. this(s, 0, CompletionStatus.COMPLETED_NO);
  36. }
  37. /**
  38. * Constructs a <code>NO_MEMORY</code> exception with the specified
  39. * minor code and completion status.
  40. * @param minor the minor code
  41. * @param completed the completion status
  42. */
  43. public NO_MEMORY(int minor, CompletionStatus completed) {
  44. this("", minor, completed);
  45. }
  46. /**
  47. * Constructs a <code>NO_MEMORY</code> exception with the specified description
  48. * message, minor code, and completion status.
  49. * @param s the String containing a description message
  50. * @param minor the minor code
  51. * @param completed the completion status
  52. */
  53. public NO_MEMORY(String s, int minor, CompletionStatus completed) {
  54. super(s, minor, completed);
  55. }
  56. }