1. /*
  2. * @(#)TypeMismatch.java 1.12 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA.DynAnyPackage;
  8. /**
  9. * TypeMismatch is thrown by dynamic any accessor methods when
  10. * type of the actual contents do not match what is trying to be
  11. * accessed.
  12. */
  13. public final class TypeMismatch
  14. extends org.omg.CORBA.UserException {
  15. /**
  16. * Constructs a <code>TypeMismatch</code> object.
  17. */
  18. public TypeMismatch() {
  19. super();
  20. }
  21. /**
  22. * Constructs a <code>TypeMismatch</code> object.
  23. * @param reason a <code>String</code> giving more information
  24. * regarding the exception.
  25. */
  26. public TypeMismatch(String reason) {
  27. super(reason);
  28. }
  29. }