Skip to content

Package: OtherSQLException

OtherSQLException

nameinstructionbranchcomplexitylinemethod
OtherSQLException(SQLException)
M: 0 C: 13
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%

Coverage

1: package de.fhdw.wtf.persistence.exception;
2:
3: import java.sql.SQLException;
4:
5: /**
6: * Wrapper for an Unnamed SQL-Exception. It contains a nested SQL-Exception
7: *
8: */
9: public class OtherSQLException extends PersistenceException {
10:         /**
11:          * the message of the exception.
12:          */
13:         private static final String EXCEPTION_MESSAGE =
14:                         "An exceptional behavior during contacting the Database occured, Please see full stack trace";
15:         
16:         /**
17:          * Wrapper for a SQLException.
18:          *
19:          * @param nestedException
20:          * the SQLException.
21:          */
22:         public OtherSQLException(final SQLException nestedException) {
23:                 super(EXCEPTION_MESSAGE + ": " + nestedException.getMessage(), nestedException);
24:         }
25:         
26:         /**
27:          *
28:          */
29:         private static final long serialVersionUID = 1L;
30:         
31: }