com.sptci.prevayler
Class NullException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sptci.prevayler.PrevalentException
com.sptci.prevayler.ConstraintException
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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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
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.