2

Closed

Slightly misleading exception message in Ivy.Common.Framework.DataAccess.DatabaseCommon

description

First attempts at creating a unit test for Ivy.UserManagement.DataAccess.FeedbackDao inevitably threw an exception:
Assert.Fail failed. DAO Error:- New [Ivy.UserManagement.DataAccess.FeedbackDao] Entity is being inserted without [CreatedByID]
 
I traced this exception message to line 63 of DatabaseCommon:
     throw new SystemException("DAO Error:- New [" + pDataEntity.GetType().ToString() + "] Entity is being inserted without [CreatedByID]");
 
To make this exception message crystal clear, I think we should write out the Column name in its full form Sys_CreatedByID.
Closed Aug 27, 2012 at 7:26 AM by DavidHyogo
Looks good.

comments

logical_feelings wrote Aug 14, 2012 at 7:35 AM

Good catch David, It is an error. I will rectify it.

wrote Aug 14, 2012 at 7:35 AM

wrote Aug 14, 2012 at 7:37 PM

wrote Aug 27, 2012 at 7:26 AM

wrote Feb 12, 2013 at 9:24 PM

wrote May 13, 2013 at 9:56 PM