View Javadoc
1   package de.fhdw.wtf.context.exception;
2   
3   /**
4    * This class represents a Framework Exception which occurs, when the application could not be started because the class
5    * for a DatabaseManagerFactory could not be instantiated.
6    * 
7    */
8   public class DatabaseManagerFactoryNotInstantiableException extends FrameworkException {
9   	
10  	/**
11  	 * The reason for not instantiating because the given class is abstract or not a descendant of
12  	 * DatabaseManagerFactory.
13  	 */
14  	public static final String CLASS_IS_A_CONCRETE_DATABASE_MANAGER_FACTORY_REASON =
15  			"The given class is abstract or not a descendant of DatabaseManagerFactory.";
16  	
17  	/**
18  	 * The message describing this exception.
19  	 */
20  	private static final String MESSAGE = "Couldn't instantiate a subclass of DatabaseManagerFactory: ";
21  	
22  	/**
23  	 * Creates a DatabaseManagerFactoryNotInstantiableException.
24  	 * 
25  	 * @param reason
26  	 *            The key which couldn't be mapped to a subclass of DatabaseManagerFactory.
27  	 */
28  	public DatabaseManagerFactoryNotInstantiableException(final String reason) {
29  		super(DatabaseManagerFactoryNotInstantiableException.MESSAGE + reason);
30  	}
31  	
32  }