1. /*
  2. * @(#)OutOfMemoryError.java 1.21 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.lang;
  8. /**
  9. * Thrown when the Java Virtual Machine cannot allocate an object
  10. * because it is out of memory, and no more memory could be made
  11. * available by the garbage collector.
  12. *
  13. * @author unascribed
  14. * @version 1.21, 12/19/03
  15. * @since JDK1.0
  16. */
  17. public
  18. class OutOfMemoryError extends VirtualMachineError {
  19. /**
  20. * Constructs an <code>OutOfMemoryError</code> with no detail message.
  21. */
  22. public OutOfMemoryError() {
  23. super();
  24. }
  25. /**
  26. * Constructs an <code>OutOfMemoryError</code> with the specified
  27. * detail message.
  28. *
  29. * @param s the detail message.
  30. */
  31. public OutOfMemoryError(String s) {
  32. super(s);
  33. }
  34. }