SPT Object Database API

com.sptci.prevayler
Class NullException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sptci.prevayler.PrevalentException
              extended by com.sptci.prevayler.ConstraintException
                  extended by com.sptci.prevayler.NullException
All Implemented Interfaces:
Serializable

public class NullException
extends ConstraintException

A custom exception used to indicate that a field marked as NotNull is null.

© Copyright 2008 Sans Pareil Technologies, Inc.

Version:
$Id: NullException.java 4345 2008-06-30 21:22:03Z rakesh $
Author:
Rakesh 2008-05-23
See Also:
Serialized Form

Field Summary
private static String FIELD_PATTERN
          The pattern for displaying constraint violation.
private static long serialVersionUID
           
 
Constructor Summary
NullException(PrevalentObject object, String field)
          Create a new instance of the exception using FIELD_PATTERN to display the message for unique constraint on specified fields being violated.
NullException(String message)
          Create a new instance of the exception with the specified message.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

FIELD_PATTERN

private static final String FIELD_PATTERN
The pattern for displaying constraint violation.

See Also:
Constant Field Values
Constructor Detail

NullException

public NullException(String message)
Create a new instance of the exception with the specified message.

Parameters:
message - The message to associate with the exception.

NullException

public NullException(PrevalentObject object,
                     String field)
Create a new instance of the exception using FIELD_PATTERN to display the message for unique constraint on specified fields being violated.

Parameters:
object - The prevalent object for which the violation was raised.
field - The name of the field whose not-null constraint was violated.

SPT Object Database API