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 the requested Object could not be found in the datastore.  Many 
021     * times this is an acceptable condition and the Object can be set to null.  
022     * However, if the client code expects a valid object, this exception can be thrown 
023     * to indicate the error.
024     */
025    public class ObjectNotFoundException extends MapperException {
026    
027        /**
028         * Constructor for ObjectNotFoundException.
029         */
030        public ObjectNotFoundException() {
031            super();
032        }
033    
034        /**
035         * Constructor for ObjectNotFoundException.
036         * @param description
037         */
038        public ObjectNotFoundException(String description) {
039            super(description);
040        }
041    
042        /**
043         * Constructor for ObjectNotFoundException.
044         * @param description
045         * @param cause
046         */
047        public ObjectNotFoundException(String description, Throwable cause) {
048            super(description, cause);
049        }
050    
051        /**
052         * Constructor for ObjectNotFoundException.
053         * @param cause
054         */
055        public ObjectNotFoundException(Throwable cause) {
056            super(cause);
057        }
058    
059    }