/*
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package org.omg.CORBA.TypeCodePackage;
/**
* The exception BadKind
is thrown when
* an inappropriate operation is invoked on a TypeCode
object. For example,
* invoking the method discriminator_type()
on an instance of
* TypeCode
that does not represent an IDL union will cause the
* exception BadKind
to be thrown.
*
* @see org.omg.CORBA.TypeCode
* @since JDK1.2
*/
public final class BadKind extends org.omg.CORBA.UserException {
/**
* Constructs a BadKind
exception with no reason message.
*/
public BadKind() {
super();
}
/**
* Constructs a BadKind
exception with the specified
* reason message.
* @param reason the String containing a reason message
*/
public BadKind(String reason) {
super(reason);
}
}