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: IncompatibleElementTypeException.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>IncompatibleElementTypeException</tt> is thrown if an incompatible 18 * element type is used with a second-class Collection instance. 19 * 20 * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a> 21 * @version $Revision: 1.4 $ 22 */ 23 24 public class IncompatibleElementTypeException extends IncompatibleTypeException 25 { 26 /** 27 * Constructs an incompatible element 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 IncompatibleElementTypeException(SCO sco, Class expected, Class actual) 35 { 36 super(sco, "element", expected, actual); 37 } 38 } 39