View Javadoc
1   package de.fhdw.wtf.persistence.exception;
2   
3   import java.sql.SQLException;
4   
5   /**
6    * A class to represent an Exception, which occurs when the instantiation of a class fails, this is usually the case,
7    * when the given User Type is abstract.
8    * 
9    */
10  public class NotInstantiatableException extends PersistenceException {
11  	
12  	/**
13  	 * Fehlernummer.
14  	 */
15  	public static final long ERRORCODE = 20004;
16  	/**
17  	 * the message of the exception.
18  	 */
19  	private static final String NOT_INSTANTIABLE_MESSAGE = "Could not instiantiate the class, maybe it is abstract";
20  	/**
21  	 * 
22  	 */
23  	private static final long serialVersionUID = 1L;
24  	
25  	/**
26  	 * Constructor for a new NotInstiableException.
27  	 * 
28  	 * @param exception
29  	 *            The nested Exception, usually an uncaught user defined PL/SQL Exception
30  	 */
31  	public NotInstantiatableException(final SQLException exception) {
32  		super(NOT_INSTANTIABLE_MESSAGE, exception);
33  	}
34  	
35  }