01: /*
02: * Copyright 2004 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: NullsNotAllowedException.java,v 1.4 2004/01/18 03:01:06 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.sco;
12:
13: import com.triactive.jdo.SCO;
14:
15: /**
16: * A <tt>NullsNotAllowedException</tt> is thrown if an attempt is made to
17: * add a null object to a Collection or Map that doesn't support nulls.
18: *
19: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
20: * @version $Revision: 1.4 $
21: */
22:
23: public class NullsNotAllowedException extends SCOException {
24: /**
25: * Constructs a nulls-not-allowed exception.
26: *
27: * @param sco The second-class object.
28: */
29:
30: public NullsNotAllowedException(SCO sco) {
31: super (sco, "Nulls not allowed");
32: }
33: }
|