[ http://issues.apache.org/jira/browse/IBATISNET-70?page=all ] Gilles Bayon closed IBATISNET-70: ---------------------------------
Resolution: Fixed Fix Version: DataMapper 1.2 Fix in SVN Ron,have you well played with http://www.vistadb.net/ ? > IBatisNet.Common.Provider.Initialisation() does not pass inner exception when > re-throwing > ----------------------------------------------------------------------------------------- > > Key: IBATISNET-70 > URL: http://issues.apache.org/jira/browse/IBATISNET-70 > Project: iBatis for .NET > Type: Bug > Reporter: Ron Grabowski > Assignee: Gilles Bayon > Fix For: DataMapper 1.2 > > As of 5/23/2005, there is a try/catch block in the Initialisation() method > that looks like this: > try > { > /* snip */ > } > catch(Exception e) > { > throw new ConfigurationException( > string.Format("Could not configure providers. Provider named \"{0}\" not > found, failed. Cause: {1}", _name, e.Message) > ); > } > e isn't being passed to the ConfigurationException constructor as the inner > exception. The code should be as follows: > try > { > /* snip */ > } > catch(Exception e) > { > throw new ConfigurationException( > string.Format("Could not configure providers. Provider named \"{0}\" not > found, failed. Cause: {1}", _name, e.Message), > e // <--- THIS IS MISSING > ); > } -- 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