1. /*
  2. * @(#)FREE_MEM.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
  10. * when the ORB failed in an attempt to free dynamic memory, for example
  11. * because of heap corruption or memory segments being locked.<P>
  12. * It contains a minor code, which gives more detailed information about
  13. * what caused the exception, and a completion status. It may also contain
  14. * a string describing the exception.
  15. *
  16. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  17. * Java IDL exceptions</A>
  18. * @version 1.16, 09/09/97
  19. * @since JDK1.2
  20. */
  21. public final class FREE_MEM extends SystemException {
  22. /**
  23. * Constructs a <code>FREE_MEM</code> exception with a default
  24. * minor code of 0 and a completion state of COMPLETED_NO.
  25. */
  26. public FREE_MEM() {
  27. this("");
  28. }
  29. /**
  30. * Constructs a <code>FREE_MEM</code> exception with the specified detail
  31. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  32. *
  33. * @param s the String containing a detail message
  34. */
  35. public FREE_MEM(String s) {
  36. this(s, 0, CompletionStatus.COMPLETED_NO);
  37. }
  38. /**
  39. * Constructs a <code>FREE_MEM</code> exception with the specified
  40. * minor code and completion status.
  41. * @param minor the minor code
  42. * @param completed the completion status
  43. */
  44. public FREE_MEM(int minor, CompletionStatus completed) {
  45. this("", minor, completed);
  46. }
  47. /**
  48. * Constructs a <code>FREE_MEM</code> exception with the specified detail
  49. * message, minor code, and completion status.
  50. * A detail message is a String that describes this particular exception.
  51. * @param s the String containing a detail message
  52. * @param minor the minor code
  53. * @param completed the completion status
  54. */
  55. public FREE_MEM(String s, int minor, CompletionStatus completed) {
  56. super(s, minor, completed);
  57. }
  58. }