package java.lang;

/**
 * Thrown when the Java Virtual Machine cannot allocate an object because it is out of memory, and
 * no more memory could be made available by the garbage collector.
 */
public class OutOfMemoryError extends VirtualMachineError {

	/**
	 * Constructs an {@code OutOfMemoryError} with no detail message.
	 */
	public OutOfMemoryError() {
		throw new RuntimeException();
	}

	/**
	 * Constructs an {@code OutOfMemoryError} with the specified detail message.
	 *
	 * @param s
	 *        the detail message.
	 */
	public OutOfMemoryError(String s) {
		throw new RuntimeException();
	}
}