jaroslav@76: /* jaroslav@76: * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved. jaroslav@76: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jaroslav@76: * jaroslav@76: * This code is free software; you can redistribute it and/or modify it jaroslav@76: * under the terms of the GNU General Public License version 2 only, as jaroslav@76: * published by the Free Software Foundation. Oracle designates this jaroslav@76: * particular file as subject to the "Classpath" exception as provided jaroslav@76: * by Oracle in the LICENSE file that accompanied this code. jaroslav@76: * jaroslav@76: * This code is distributed in the hope that it will be useful, but WITHOUT jaroslav@76: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jaroslav@76: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jaroslav@76: * version 2 for more details (a copy is included in the LICENSE file that jaroslav@76: * accompanied this code). jaroslav@76: * jaroslav@76: * You should have received a copy of the GNU General Public License version jaroslav@76: * 2 along with this work; if not, write to the Free Software Foundation, jaroslav@76: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jaroslav@76: * jaroslav@76: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jaroslav@76: * or visit www.oracle.com if you need additional information or have any jaroslav@76: * questions. jaroslav@76: */ jaroslav@76: jaroslav@76: package java.lang; jaroslav@76: jaroslav@76: /** jaroslav@76: * Thrown when the Java Virtual Machine cannot allocate an object jaroslav@76: * because it is out of memory, and no more memory could be made jaroslav@76: * available by the garbage collector. jaroslav@76: * jaroslav@76: * {@code OutOfMemoryError} objects may be constructed by the virtual jaroslav@76: * machine as if {@linkplain Throwable#Throwable(String, Throwable, jaroslav@76: * boolean, boolean) suppression were disabled and/or the stack trace was not jaroslav@76: * writable}. jaroslav@76: * jaroslav@76: * @author unascribed jaroslav@76: * @since JDK1.0 jaroslav@76: */ jaroslav@76: public class OutOfMemoryError extends VirtualMachineError { jaroslav@76: private static final long serialVersionUID = 8228564086184010517L; jaroslav@76: jaroslav@76: /** jaroslav@76: * Constructs an {@code OutOfMemoryError} with no detail message. jaroslav@76: */ jaroslav@76: public OutOfMemoryError() { jaroslav@76: super(); jaroslav@76: } jaroslav@76: jaroslav@76: /** jaroslav@76: * Constructs an {@code OutOfMemoryError} with the specified jaroslav@76: * detail message. jaroslav@76: * jaroslav@76: * @param s the detail message. jaroslav@76: */ jaroslav@76: public OutOfMemoryError(String s) { jaroslav@76: super(s); jaroslav@76: } jaroslav@76: }