KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > DynAnyPackage > TypeMismatch


1 /*
2  * @(#)TypeMismatch.java 1.13 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
8
9 package org.omg.CORBA.DynAnyPackage;
10
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 JavaDoc {
18
19     /**
20      * Constructs a <code>TypeMismatch</code> object.
21      */

22     public TypeMismatch() {
23     super();
24     }
25
26     /**
27      * Constructs a <code>TypeMismatch</code> object.
28      * @param reason a <code>String</code> giving more information
29      * regarding the exception.
30      */

31     public TypeMismatch(String JavaDoc reason) {
32     super(reason);
33     }
34 }
35
Popular Tags