User: dsundstrom Date: 02/01/15 12:43:57 Modified: src/main/org/jboss/ejb/plugins/cmp/jdbc/bridge JDBCAbstractCMPFieldBridge.java Log: Changed construction of EJBException to pass the wrap exception instead of embeding only the exception message. Revision Changes Path 1.10 +6 -8 jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/bridge/JDBCAbstractCMPFieldBridge.java Index: JDBCAbstractCMPFieldBridge.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/bridge/JDBCAbstractCMPFieldBridge.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- JDBCAbstractCMPFieldBridge.java 2001/11/26 03:12:26 1.9 +++ JDBCAbstractCMPFieldBridge.java 2002/01/15 20:43:56 1.10 @@ -20,7 +20,6 @@ import org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCCMPFieldMetaData; -import org.jboss.ejb.plugins.cmp.bridge.CMPFieldBridge; import org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager; import org.jboss.ejb.plugins.cmp.jdbc.JDBCType; import org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil; @@ -41,7 +40,7 @@ * One for each entity bean cmp field. * * @author <a href="mailto:[EMAIL PROTECTED]">Dain Sundstrom</a> - * @version $Revision: 1.9 $ + * @version $Revision: 1.10 $ */ public abstract class JDBCAbstractCMPFieldBridge implements JDBCCMPFieldBridge { protected JDBCStoreManager manager; @@ -114,7 +113,7 @@ } catch(Exception e) { // Non recoverable internal exception throw new EJBException("Internal error getting primary key " + - "field member " + getFieldName() + ": " + e); + "field member " + getFieldName(), e); } } @@ -145,7 +144,7 @@ } catch(Exception e) { // Non recoverable internal exception throw new EJBException("Internal error setting instance field " + - getFieldName() + ": " + e); + getFieldName(), e); } } @@ -219,7 +218,7 @@ } catch(SQLException e) { // Non recoverable internal exception throw new EJBException("Internal error setting parameters for field " + - getFieldName() + ": " + e); + getFieldName(), e); } } @@ -243,9 +242,8 @@ throw e; } catch(Exception e) { // Non recoverable internal exception - e.printStackTrace(); throw new EJBException("Internal error getting results for field " + - getFieldName() + ": " + e); + getFieldName(), e); } } @@ -291,7 +289,7 @@ } catch(SQLException e) { // Non recoverable internal exception throw new EJBException("Internal error getting results " + - "for field member " + getFieldName() + ": " + e); + "for field member " + getFieldName(), e); } }
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development