FREE_MEM.java revision 608:7e06bf1dcb09
1239281Sgonzo/*
2239281Sgonzo * Copyright (c) 1995, 2006, Oracle and/or its affiliates. All rights reserved.
3239281Sgonzo * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4239281Sgonzo *
5239281Sgonzo * This code is free software; you can redistribute it and/or modify it
6239281Sgonzo * under the terms of the GNU General Public License version 2 only, as
7239281Sgonzo * published by the Free Software Foundation.  Oracle designates this
8239281Sgonzo * particular file as subject to the "Classpath" exception as provided
9239281Sgonzo * by Oracle in the LICENSE file that accompanied this code.
10239281Sgonzo *
11239281Sgonzo * This code is distributed in the hope that it will be useful, but WITHOUT
12239281Sgonzo * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13239281Sgonzo * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14239281Sgonzo * version 2 for more details (a copy is included in the LICENSE file that
15239281Sgonzo * accompanied this code).
16239281Sgonzo *
17239281Sgonzo * You should have received a copy of the GNU General Public License version
18239281Sgonzo * 2 along with this work; if not, write to the Free Software Foundation,
19239281Sgonzo * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20239281Sgonzo *
21239281Sgonzo * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22239281Sgonzo * or visit www.oracle.com if you need additional information or have any
23239281Sgonzo * questions.
24239281Sgonzo */
25239281Sgonzo
26239281Sgonzopackage org.omg.CORBA;
27239281Sgonzo
28239281Sgonzo/**
29239281Sgonzo * Exception thrown
30239281Sgonzo * when the ORB failed in an attempt to free dynamic memory, for example
31239281Sgonzo * because of heap corruption or memory segments being locked.<P>
32239281Sgonzo * It contains a minor code, which gives more detailed information about
33239281Sgonzo * what caused the exception, and a completion status. It may also contain
34239281Sgonzo * a string describing the exception.
35239281Sgonzo *
36239281Sgonzo * @see <A href="../../../../technotes/guides/idl/jidlExceptions.html">documentation on
37239281Sgonzo * Java&nbsp;IDL exceptions</A>
38239281Sgonzo * @since       JDK1.2
39239281Sgonzo */
40239281Sgonzo
41239281Sgonzopublic final class FREE_MEM extends SystemException {
42239281Sgonzo    /**
43239281Sgonzo     * Constructs a <code>FREE_MEM</code> exception with a default
44239281Sgonzo     * minor code of 0 and a completion state of COMPLETED_NO.
45239281Sgonzo     */
46239281Sgonzo    public FREE_MEM() {
47239281Sgonzo        this("");
48239281Sgonzo    }
49239281Sgonzo
50239281Sgonzo    /**
51239281Sgonzo     * Constructs a <code>FREE_MEM</code> exception with the specified detail
52239281Sgonzo     * message, a minor code of 0, and a completion state of COMPLETED_NO.
53239281Sgonzo     *
54239281Sgonzo     * @param s the String containing a detail message
55239281Sgonzo     */
56239281Sgonzo    public FREE_MEM(String s) {
57239281Sgonzo        this(s, 0, CompletionStatus.COMPLETED_NO);
58239281Sgonzo    }
59239281Sgonzo
60239281Sgonzo    /**
61239281Sgonzo     * Constructs a <code>FREE_MEM</code> exception with the specified
62     * minor code and completion status.
63     * @param minor the minor code
64     * @param completed the completion status
65     */
66    public FREE_MEM(int minor, CompletionStatus completed) {
67        this("", minor, completed);
68    }
69
70    /**
71     * Constructs a <code>FREE_MEM</code> exception with the specified detail
72     * message, minor code, and completion status.
73     * A detail message is a String that describes this particular exception.
74     * @param s the String containing a detail message
75     * @param minor the minor code
76     * @param completed the completion status
77     */
78    public FREE_MEM(String s, int minor, CompletionStatus completed) {
79        super(s, minor, completed);
80    }
81}
82