Skip to content

Commit 282498a

Browse files
committed
LUTECE-2207: fix missing cause exception in sql failures in some cases
1 parent 342ca3e commit 282498a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java/fr/paris/lutece/util/pool/service/ConnectionPool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private void initPool( int initConns )
130130
}
131131
catch( SQLException e )
132132
{
133-
throw new AppException( "SQL Error executing command : " + e.toString( ) );
133+
throw new AppException( "SQL Error executing command : " + e.toString( ), e );
134134
}
135135
}
136136
}
@@ -250,7 +250,7 @@ private boolean isConnectionOK( Connection conn )
250250
}
251251
catch( SQLException se )
252252
{
253-
throw new AppException( "ConnectionService : SQL Error executing command : " + se.toString( ) );
253+
throw new AppException( "ConnectionService : SQL Error executing command : " + se.toString( ), se );
254254
}
255255
}
256256

0 commit comments

Comments
 (0)