KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)BAD_OPERATION.java 1.33 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 an object reference denotes an existing object,
12  * but that the object does not support the operation that was invoked.<P>
13  * It contains a minor code, which gives more detailed information about
14  * what caused the exception, and a completion status. It may also contain
15  * a string describing the exception.
16  *
17  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
18  * Java&nbsp;IDL exceptions</A>
19  * @version 1.17, 09/09/97
20  * @since JDK1.2
21  */

22
23 public final class BAD_OPERATION extends SystemException JavaDoc {
24
25     /**
26      * Constructs a <code>BAD_OPERATION</code> exception with a default
27      * minor code of 0 and a completion state of COMPLETED_NO.
28      */

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

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

49     public BAD_OPERATION(int minor, CompletionStatus JavaDoc completed) {
50         this("", minor, completed);
51     }
52
53     /**
54      * Constructs a <code>BAD_OPERATION</code> exception with the specified detail
55      * message, minor code, and completion status.
56      * A detail message is a String that describes this particular exception.
57      * @param s the String containing a detail message
58      * @param minor the minor code
59      * @param completed an instance of <code>CompletionStatus</code> indicating
60      * the completion status
61      */

62     public BAD_OPERATION(String JavaDoc s, int minor, CompletionStatus JavaDoc completed) {
63         super(s, minor, completed);
64     }
65 }
66
Popular Tags