001 package org.apache.ojb.broker.metadata;
002
003 /* Copyright 2002-2005 The Apache Software Foundation
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017
018 /**
019 * This exception is thrown if a class is not described in the MetaData Repository,
020 * and thus cannot be handled properly by OJB
021 * @author Thomas Mahler
022 * @version $Id: ClassNotPersistenceCapableException.java,v 1.1 2007-08-24 22:17:29 ewestfal Exp $
023 */
024 public class ClassNotPersistenceCapableException extends MetadataException
025 {
026
027 /**
028 *
029 * Creates a new ClassNotPersistenceCapableException without a message and without a cause.
030 *
031 */
032 public ClassNotPersistenceCapableException()
033 {
034 super();
035 }
036
037 /**
038 *
039 * Creates a new ClassNotPersistenceCapableException with the specified message.
040 *
041 * @param message the detail message
042 *
043 */
044 public ClassNotPersistenceCapableException(String message)
045 {
046 super(message);
047 }
048
049 /**
050 *
051 * Creates a new ClassNotPersistenceCapableException with the specified cause.
052 *
053 * @param cause The cause of this Exception
054 *
055 */
056 public ClassNotPersistenceCapableException(Throwable cause)
057 {
058 super(cause);
059 }
060
061 /**
062 * Creates a new ClassNotPersistenceCapableException with the specified message and the specified cause.
063 * @param message the detail message
064 * @param cause the root cause
065 */
066 public ClassNotPersistenceCapableException(String message, Throwable cause)
067 {
068 super(message, cause);
069 }
070
071 }