View Javadoc
1   package de.fhdw.wtf.persistence.exception;
2   
3   /**
4    * 
5    * A Class to represent an Exception, which occurs when someone tries to execute Database operations before connecting.
6    */
7   public class NotConnectedException extends PersistenceException {
8   	
9   	/**
10  	 * the message of the exception.
11  	 */
12  	private static final String NOT_CONNECTED_MESSAGE = "The connection towards the Database was not established !!!";
13  	
14  	/**
15  	 * Constructor for a not Connected Exception.
16  	 */
17  	public NotConnectedException() {
18  		super("Es besteht keine Verbindung zur Datenbank", null);
19  	}
20  	
21  	/**
22  	 * 
23  	 */
24  	private static final long serialVersionUID = 1L;
25  	
26  	@Override
27  	public void printStackTrace() {
28  		System.err.println(NOT_CONNECTED_MESSAGE + this.fillInStackTrace());
29  	}
30  	
31  }