Skip to content

Method: printStackTrace()

1: package de.fhdw.wtf.persistence.exception;
2:
3: /**
4: * A class to represent an exception which occurs when a the database is accessed with a Transaction, which is either a
5: * closed transaction or even not a Transaction at all.
6: *
7: */
8: public class NoValidTransactionException extends PersistenceException {
9:         /**
10:          * the message of the exception.
11:          */
12:         private static final String NO_VALID_TRANSACTION_MESSAGE =
13:                         "The given Transaction was either a closed transaction or even not a Transaction at all";
14:         /**
15:          *
16:          */
17:         private static final long serialVersionUID = 1L;
18:         
19:         /**
20:          * Konstruktor der die entsprechende Fehlermeldung zur�ckgibt.
21:          */
22:         public NoValidTransactionException() {
23:                 super(NO_VALID_TRANSACTION_MESSAGE, null);
24:         }
25:         
26:         @Override
27:         public void printStackTrace() {
28:                 System.err.println(this.getMessage() + this.fillInStackTrace());
29:         }
30: }