001/* 002 * The contents of this file are subject to the license and copyright 003 * detailed in the LICENSE and NOTICE files at the root of the source 004 * tree. 005 */ 006package org.fcrepo.kernel.api.exception; 007 008/** 009 * A constraint has been violated. 010 * 011 * @author whikloj 012 * @since 2015-05-29 013 */ 014public class ConstraintViolationException extends RepositoryRuntimeException { 015 016 private static final long serialVersionUID = 1L; 017 018 /** 019 * Ordinary constructor. 020 * 021 * @param msg the message 022 */ 023 public ConstraintViolationException(final String msg) { 024 super(msg); 025 } 026 027 /** 028 * Ordinary constructor. 029 * 030 * @param msg the message 031 * @param rootCause the root cause 032 */ 033 public ConstraintViolationException(final String msg, final Throwable rootCause) { 034 super(msg, rootCause); 035 } 036 037}