KickJava   Java API By Example, From Geeks To Geeks.

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


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: NullsNotAllowedException.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>NullsNotAllowedException</tt> is thrown if an attempt is made to
18  * add a null object to a Collection or Map that doesn't support nulls.
19  *
20  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
21  * @version $Revision: 1.4 $
22  */

23
24 public class NullsNotAllowedException extends SCOException
25 {
26     /**
27      * Constructs a nulls-not-allowed exception.
28      *
29      * @param sco The second-class object.
30      */

31
32     public NullsNotAllowedException(SCO sco)
33     {
34         super(sco, "Nulls not allowed");
35     }
36 }
37
Popular Tags