Skip to content

Package: InitializingDatabaseContractViolationException

InitializingDatabaseContractViolationException

nameinstructionbranchcomplexitylinemethod
InitializingDatabaseContractViolationException()
M: 5 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
printStackTrace()
M: 12 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%

Coverage

1: package de.fhdw.wtf.persistence.exception;
2:
3: /**
4: * A class to represent an Exception, which occurs when the JDBC-Class-Facade and the PL/SQL-Class-Facade are not
5: * consistent anymore and the JDBC facade expects types to be initialize, which are actually different to the types
6: * instantiated by the PL/SQL-Facade.
7: *
8: */
9: public class InitializingDatabaseContractViolationException extends PersistenceException {
10:         
11:         /**
12:          * the message of the exception.
13:          */
14:         private static final String CONTRACT_VIOLATION_MESSAGE =
15:                         "The Contract for the initialization of the types between the JDBC-Facade and the PL/SQL-Facade has been violated: Please check the stored procedure classface.initialize and th OracleClassFacadeImplementation.java";
16:         /**
17:          *
18:          */
19:         private static final long serialVersionUID = 1L;
20:         
21:         /**
22:          * Public constructor for an InitializingDatabaseContractViolationException.
23:          */
24:         public InitializingDatabaseContractViolationException() {
25:                 super(CONTRACT_VIOLATION_MESSAGE, null);
26:         }
27:         
28:         @Override
29:         public void printStackTrace() {
30:                 System.err.println(CONTRACT_VIOLATION_MESSAGE + this.fillInStackTrace());
31:         }
32:         
33: }