} catch (java.sql.SQLException e) {
String sqlState = e.getSQLState();
int errorCode = e.getErrorCode();
if (sqlState == null) {
throw new JDODataStoreException(
I18NHelper.getMessage(messages,
"connectionefactoryimpl.sqlexception", // NOI18N
"null", "" + errorCode), e); // NOI18N
} else {
throw new JDODataStoreException(
I18NHelper.getMessage(messages,
"connectionefactoryimpl.sqlexception", // NOI18N
sqlState, "" + errorCode), e); // NOI18N
}
}