1. /*
  2. * @(#)TypeMismatch.java 1.9 00/02/02
  3. *
  4. * Copyright 1998-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.DynAnyPackage;
  11. /**
  12. * TypeMismatch is thrown by dynamic any accessor methods when
  13. * type of the actual contents do not match what is trying to be
  14. * accessed.
  15. */
  16. public final class TypeMismatch
  17. extends org.omg.CORBA.UserException {
  18. /**
  19. * Constructs a <code>TypeMismatch</code> object.
  20. */
  21. public TypeMismatch() {
  22. super();
  23. }
  24. /**
  25. * Constructs a <code>TypeMismatch</code> object.
  26. * @param reason a <code>String</code> giving more information
  27. * regarding the exception.
  28. */
  29. public TypeMismatch(String reason) {
  30. super(reason);
  31. }
  32. }