org.jarbframework.sample.PostTitleAlreadyExistsException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jarb-sample Show documentation
Show all versions of jarb-sample Show documentation
Sample application that demonstrates all modules.
package org.jarbframework.sample;
import org.jarbframework.constraint.violation.DatabaseConstraintViolation;
import org.jarbframework.constraint.violation.UniqueKeyViolationException;
import org.jarbframework.constraint.violation.factory.NamedConstraint;
/**
* Thrown whenever a post is being inserted with a title that already exists.
* @author Jeroen van Schagen
* @since 8-6-2011
*/
@NamedConstraint("uk_posts_title")
public class PostTitleAlreadyExistsException extends UniqueKeyViolationException {
/**
* Construct a new {@link PostTitleAlreadyExistsException}.
* @param violation constraint violation reference
* @param cause the actual cause
*/
public PostTitleAlreadyExistsException(DatabaseConstraintViolation violation, Throwable cause) {
super(violation, cause);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy