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. package org.omg.CORBA.TypeCodePackage;
  8. /**
  9. * The exception <code>BadKind</code> is thrown when
  10. * an inappropriate operation is invoked on a <code>TypeCode</code> object. For example,
  11. * invoking the method <code>discriminator_type()</code> on an instance of
  12. * <code>TypeCode</code> that does not represent an IDL union will cause the
  13. * exception <code>BadKind</code> to be thrown.
  14. *
  15. * @see org.omg.CORBA.TypeCode
  16. * @version 1.7, 03/18/98
  17. * @since JDK1.2
  18. */
  19. public final class BadKind extends org.omg.CORBA.UserException {
  20. /**
  21. * Constructs a <code>BadKind</code> exception with no reason message.
  22. */
  23. public BadKind() {
  24. super();
  25. }
  26. /**
  27. * Constructs a <code>BadKind</code> exception with the specified
  28. * reason message.
  29. * @param reason the String containing a reason message
  30. */
  31. public BadKind(String reason) {
  32. super(reason);
  33. }
  34. }