All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jarbframework.sample.PostTitleAlreadyExistsException Maven / Gradle / Ivy

There is a newer version: 2.4.3
Show newest version
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