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 during finalization of the Specialization relationships of the
7    * types a cycle is detected, because the specialization has to be a partial order.
8    * 
9    */
10  public class SpecializationCycleDetected extends PersistenceException {
11  	
12  	/**
13  	 * Error nummer of the Oracle UserException.
14  	 */
15  	public static final long ERRORCODE = 20000;
16  	/**
17  	 * 
18  	 */
19  	private static final long serialVersionUID = 1L;
20  	
21  	/**
22  	 * The Public constructor for a SpecializationCycleDetected Exception.
23  	 * 
24  	 * @param nested
25  	 *            The nested SQL Exception causing the error, usually an uncaught user defined PL/SQL-Exception.
26  	 */
27  	public SpecializationCycleDetected(final SQLException nested) {
28  		super("The Specialization hierarchy between the user types contains a cycle!!!", nested);
29  	}
30  	
31  }