FileDocCategorySizeDatePackage
ConstraintException.javaAPI DocExample2049Sun Dec 14 22:47:40 GMT 2003oreilly.hcj.datamodeling.constraints

ConstraintException

public final class ConstraintException extends RuntimeException
Defines a RuntimeException for constraint violations.

Objects of this class are immutable.

author
Robert Simmons jr.
version
$Revision: 1.1 $

Fields Summary
private ConstraintExceptionType
exceptionType
Holds value of property specifier. This property tells the user what type of exception was created.
Constructors Summary
public ConstraintException(ConstraintExceptionType exceptionType)
Creates a new instance of ConstraintViolatedException. The message is set to show whatever specifier was given.

param
exceptionType DOCUMENT ME!

		super(" specifier = " + exceptionType.getName());  //$NON-NLS-1$
		this.exceptionType = exceptionType;
	
public ConstraintException(ConstraintExceptionType exceptionType, String msg)
Constructs an instance of ConstraintViolatedException with the specified detail message.

param
exceptionType DOCUMENT ME!
param
msg the detail message.

		super(msg);
		this.exceptionType = exceptionType;
	
Methods Summary
public ConstraintExceptionTypegetExceptionType()
Getter for property specifier. The specifier indicates what kind of exception occurred.

return
Value of property specifier.

		return this.exceptionType;