KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > sco > IncompatibleValueTypeException


1 /*
2  * Copyright 2004 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: IncompatibleValueTypeException.java,v 1.4 2004/01/18 03:01:06 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.sco;
12
13 import com.triactive.jdo.SCO;
14
15
16 /**
17  * A <tt>IncompatibleValueTypeException</tt> is thrown if an incompatible value
18  * type is used with a second-class Map instance.
19  *
20  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
21  * @version $Revision: 1.4 $
22  */

23
24 public class IncompatibleValueTypeException extends IncompatibleTypeException
25 {
26     /**
27      * Constructs an incompatible value type exception.
28      *
29      * @param sco The second-class object.
30      * @param expected The expected type.
31      * @param actual The actual type.
32      */

33
34     public IncompatibleValueTypeException(SCO sco, Class JavaDoc expected, Class JavaDoc actual)
35     {
36         super(sco, "value", expected, actual);
37     }
38 }
39
Popular Tags