001    /*
002     * Copyright 2003-2004 The Apache Software Foundation.
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    package org.apache.commons.mapper;
018    
019    /**
020     * Indicates that a record was unable to be created in the datastore because a 
021     * unique field would have duplicates.  This could be a primary key or unique 
022     * constraint in a database.
023     */
024    public class UniqueFieldAlreadyExistsException extends MapperException {
025    
026        /**
027         * Constructor for UniqueFieldAlreadyExistsException.
028         */
029        public UniqueFieldAlreadyExistsException() {
030            super();
031        }
032    
033        /**
034         * Constructor for UniqueFieldAlreadyExistsException.
035         * @param description
036         */
037        public UniqueFieldAlreadyExistsException(String description) {
038            super(description);
039        }
040    
041        /**
042         * Constructor for UniqueFieldAlreadyExistsException.
043         * @param description
044         * @param cause
045         */
046        public UniqueFieldAlreadyExistsException(String description, Throwable cause) {
047            super(description, cause);
048        }
049    
050        /**
051         * Constructor for UniqueFieldAlreadyExistsException.
052         * @param cause
053         */
054        public UniqueFieldAlreadyExistsException(Throwable cause) {
055            super(cause);
056        }
057    
058    }