1. /*
  2. * @(#)OutOfMemoryError.java 1.18 00/02/02
  3. *
  4. * Copyright 1994-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 java.lang;
  11. /**
  12. * Thrown when the Java Virtual Machine cannot allocate an object
  13. * because it is out of memory, and no more memory could be made
  14. * available by the garbage collector.
  15. *
  16. * @author unascribed
  17. * @version 1.18, 02/02/00
  18. * @since JDK1.0
  19. */
  20. public
  21. class OutOfMemoryError extends VirtualMachineError {
  22. /**
  23. * Constructs an <code>OutOfMemoryError</code> with no detail message.
  24. */
  25. public OutOfMemoryError() {
  26. super();
  27. }
  28. /**
  29. * Constructs an <code>OutOfMemoryError</code> with the specified
  30. * detail message.
  31. *
  32. * @param s the detail message.
  33. */
  34. public OutOfMemoryError(String s) {
  35. super(s);
  36. }
  37. }