[ http://issues.apache.org/jira/browse/IBATISNET-1?page=all ]
Gilles Bayon closed IBATISNET-1:
--------------------------------
Resolution: Duplicate
Fix Version: DataMapper 1.2
Replaced by IBATISNET-35
> Improved error reporting
> ------------------------
>
> Key: IBATISNET-1
> URL: http://issues.apache.org/jira/browse/IBATISNET-1
> Project: iBatis for .NET
> Type: Improvement
> Reporter: Gilles Bayon
> Assignee: Gilles Bayon
> Fix For: DataMapper 1.2
> Attachments: MappedStatement.cs, MappedStatement.cs.patch
>
> After I retrieved the latest source from SVN, and built it,
> my code stopped working - due to changes in the
> SqlMap format between the binary download and the
> latest source.
> I found the errors to be very cryptic, and sometimes no
> error messages at all, simply NPE. The cryptic nature of
> the message might be due to my use of MySQL (the
> error only statet that a column could not be found, but
> didn't say which column)
> So I made a couple of minor fixes to
> MappedStatement.cs
> Attached is a modified MappedStatement.cs that
> catches exceptions from the db layer, and throws a
> meaningful exception with the db exception wrapped as
> an InnerException
> Specifically, lines 863-871 and lines 923-931
> With this, the exception points to the errors in the map,
> easing the fixing process. Although I will freely admit
> that I stared at my exception message on InputLenght
> for a long time until I realized it should be InputLength :)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira