01: /*
02: * Copyright 2002 (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: IsNotNullableException.java,v 1.3 2002/11/08 05:06:25 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: /**
14: * An <tt>IsNotNullableException</tt> is thrown during schema validation if a
15: * column is detected not to allow null values in the database when it should.
16: *
17: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
18: * @version $Revision: 1.3 $
19: *
20: * @see Column
21: */
22:
23: public class IsNotNullableException extends SchemaValidationException {
24: /**
25: * Constructs an is-not-nullable exception.
26: *
27: * @param column The column wrongly disallowing nulls.
28: */
29:
30: public IsNotNullableException(Column column) {
31: super ("Column " + column + " should allow nulls but does not");
32: }
33: }
|