You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by ro...@apache.org on 2005/05/26 08:27:04 UTC
svn commit: r178605 -
/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers
/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/MappedStatements
Author: roberto
Date: Wed May 25 23:27:02 2005
New Revision: 178605
URL: http://svn.apache.org/viewcvs?rev=178605&view=rev
Log:
~Updated C# DataMapper and DataAccess: exception fixes for IBATISNET-72 ( JIRA-72 ) reported by Ron G + NHibernateDaoSessionHandler.cs exception
Modified:
incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers/NHibernateDaoSession.cs
incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers/NHibernateDaoSessionHandler.cs
incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/MappedStatements/MappedStatement.cs
Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers/NHibernateDaoSession.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers/NHibernateDaoSession.cs?rev=178605&r1=178604&r2=178605&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers/NHibernateDaoSession.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers/NHibernateDaoSession.cs Wed May 25 23:27:02 2005
@@ -167,7 +167,7 @@
}
catch (HibernateException e)
{
- throw new DataAccessException("Error starting Hibernate transaction. Cause: " + e, e);
+ throw new DataAccessException("Error starting Hibernate transaction. Cause: " + e.Message, e);
}
}
@@ -193,7 +193,7 @@
}
catch (HibernateException e)
{
- throw new DataAccessException("Error starting Hibernate transaction. Cause: " + e, e);
+ throw new DataAccessException("Error starting Hibernate transaction. Cause: " + e.Message, e);
}
}
}
@@ -233,7 +233,7 @@
}
catch (HibernateException e)
{
- throw new DataAccessException("Error committing Hibernate transaction. Cause: " + e);
+ throw new DataAccessException("Error committing Hibernate transaction. Cause: " + e.Message, e);
}
}
@@ -253,7 +253,7 @@
}
catch (HibernateException e)
{
- throw new DataAccessException("Error committing Hibernate transaction. Cause: " + e);
+ throw new DataAccessException("Error committing Hibernate transaction. Cause: " + e.Message, e);
}
}
@@ -272,7 +272,7 @@
}
catch (HibernateException e)
{
- throw new DataAccessException("Error ending Hibernate transaction. Cause: " + e);
+ throw new DataAccessException("Error ending Hibernate transaction. Cause: " + e.Message, e);
}
}
@@ -292,7 +292,7 @@
}
catch (HibernateException e)
{
- throw new DataAccessException("Error ending Hibernate transaction. Cause: " + e);
+ throw new DataAccessException("Error ending Hibernate transaction. Cause: " + e.Message, e);
}
}
Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers/NHibernateDaoSessionHandler.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers/NHibernateDaoSessionHandler.cs?rev=178605&r1=178604&r2=178605&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers/NHibernateDaoSessionHandler.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataAccess.Extensions/DaoSessionHandlers/NHibernateDaoSessionHandler.cs Wed May 25 23:27:02 2005
@@ -113,7 +113,7 @@
}
catch(Exception e)
{
- throw new ConfigurationException(string.Format("DaoManager could not configure NHibernateDaoSessionHandler. Cause: {0}", e.Message));
+ throw new ConfigurationException(string.Format("DaoManager could not configure NHibernateDaoSessionHandler. Cause: {0}", e.Message), e);
}
}
Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/MappedStatements/MappedStatement.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/MappedStatements/MappedStatement.cs?rev=178605&r1=178604&r2=178605&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/MappedStatements/MappedStatement.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/MappedStatements/MappedStatement.cs Wed May 25 23:27:02 2005
@@ -1217,7 +1217,7 @@
}
catch (Exception e)
{
- throw new DataMapperException("Error automapping columns. Cause: " + e);
+ throw new DataMapperException("Error automapping columns. Cause: " + e.Message, e);
}
}