KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > TypeCodePackage > BadKind


1 /*
2  * @(#)BadKind.java 1.19 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.TypeCodePackage;
9
10 /**
11  * The exception <code>BadKind</code> is thrown when
12  * an inappropriate operation is invoked on a <code>TypeCode</code> object. For example,
13  * invoking the method <code>discriminator_type()</code> on an instance of
14  * <code>TypeCode</code> that does not represent an IDL union will cause the
15  * exception <code>BadKind</code> to be thrown.
16  *
17  * @see org.omg.CORBA.TypeCode
18  * @version 1.7, 03/18/98
19  * @since JDK1.2
20  */

21
22 public final class BadKind extends org.omg.CORBA.UserException JavaDoc {
23     /**
24      * Constructs a <code>BadKind</code> exception with no reason message.
25      */

26     public BadKind() {
27     super();
28     }
29
30     /**
31      * Constructs a <code>BadKind</code> exception with the specified
32      * reason message.
33      * @param reason the String containing a reason message
34      */

35     public BadKind(String JavaDoc reason) {
36     super(reason);
37     }
38 }
39
Popular Tags