KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)BAD_QOS.java 1.2 04/03/15
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  * The <code>BAD_QOS</code> exception is raised whenever an object cannot
12  * support the quality of service required by an invocation parameter that
13  * has a quality of service semantics associated with it.
14  *
15  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
16  * Java&nbsp;IDL exceptions</A>
17  * @version 1.0, 03/05/2004
18  * @since J2SE 1.5
19  */

20
21 public final class BAD_QOS extends SystemException JavaDoc {
22
23     /**
24      * Constructs an <code>BAD_QOS</code> exception with
25      * minor code set to 0 and CompletionStatus set to COMPLETED_NO.
26      */

27     public BAD_QOS() {
28     this("");
29     }
30
31     /**
32      * Constructs an <code>BAD_QOS</code> exception with the
33      * specified message.
34      *
35      * @param detailMessage string containing a detailed message.
36      */

37     public BAD_QOS(String JavaDoc detailMessage) {
38         this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
39     }
40
41     /**
42      * Constructs an <code>BAD_QOS</code> exception with the
43      * specified minor code and completion status.
44      *
45      * @param minorCode minor code.
46      * @param completionStatus completion status.
47      */

48     public BAD_QOS(int minorCode,
49                    CompletionStatus JavaDoc completionStatus) {
50         this("", minorCode, completionStatus);
51     }
52
53     /**
54      * Constructs an <code>BAD_QOS</code> exception with the
55      * specified message, minor code, and completion status.
56      *
57      * @param detailMessage string containing a detailed message.
58      * @param minorCode minor code.
59      * @param completionStatus completion status.
60      */

61     public BAD_QOS(String JavaDoc detailMessage,
62                    int minorCode,
63                    CompletionStatus JavaDoc completionStatus) {
64         super(detailMessage, minorCode, completionStatus);
65     }
66 }
67
Popular Tags