KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > NO_RESOURCES


1 /*
2  * @(#)NO_RESOURCES.java 1.31 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
8 package org.omg.CORBA;
9
10 /**
11  * Exception thrown when the ORB has encountered some general resource
12  * limitation. For example, the run time may have reached the maximum
13  * permissible number of open connections.<P>
14  * It contains a minor code, which gives more detailed information about
15  * what caused the exception, and a completion status. It may also contain
16  * a string describing the exception.
17  *
18  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
19  * Java&nbsp;IDL exceptions</A>
20  * @version 1.17, 09/09/97
21  * @since JDK1.2
22  */

23
24 public final class NO_RESOURCES extends SystemException JavaDoc {
25     /**
26      * Constructs a <code>NO_RESOURCES</code> exception with a default minor code
27      * of 0, a completion state of CompletionStatus.COMPLETED_NO,
28      * and a null description.
29      */

30     public NO_RESOURCES() {
31         this("");
32     }
33
34     /**
35      * Constructs a <code>NO_RESOURCES</code> exception with the specified description,
36      * a minor code of 0, and a completion state of COMPLETED_NO.
37      * @param s the String containing a description message
38      */

39     public NO_RESOURCES(String JavaDoc s) {
40         this(s, 0, CompletionStatus.COMPLETED_NO);
41     }
42
43     /**
44      * Constructs a <code>NO_RESOURCES</code> exception with the specified
45      * minor code and completion status.
46      * @param minor the minor code
47      * @param completed the completion status
48      */

49     public NO_RESOURCES(int minor, CompletionStatus JavaDoc completed) {
50         this("", minor, completed);
51     }
52
53     /**
54      * Constructs a <code>NO_RESOURCES</code> exception with the specified description
55      * message, minor code, and completion status.
56      * @param s the String containing a description message
57      * @param minor the minor code
58      * @param completed the completion status
59      */

60     public NO_RESOURCES(String JavaDoc s, int minor, CompletionStatus JavaDoc completed) {
61         super(s, minor, completed);
62     }
63 }
64
Popular Tags