1. /*
  2. * @(#)BadKind.java 1.15 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package org.omg.CORBA.TypeCodePackage;
  11. /**
  12. * The exception <code>BadKind</code> is thrown when
  13. * an inappropriate operation is invoked on a <code>TypeCode</code> object. For example,
  14. * invoking the method <code>discriminator_type()</code> on an instance of
  15. * <code>TypeCode</code> that does not represent an IDL union will cause the
  16. * exception <code>BadKind</code> to be thrown.
  17. *
  18. * @see org.omg.CORBA.TypeCode
  19. * @version 1.7, 03/18/98
  20. * @since JDK1.2
  21. */
  22. public final class BadKind extends org.omg.CORBA.UserException {
  23. /**
  24. * Constructs a <code>BadKind</code> exception with no reason message.
  25. */
  26. public BadKind() {
  27. super();
  28. }
  29. /**
  30. * Constructs a <code>BadKind</code> exception with the specified
  31. * reason message.
  32. * @param reason the String containing a reason message
  33. */
  34. public BadKind(String reason) {
  35. super(reason);
  36. }
  37. }