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
 Assigned to: Gilles Bayon 


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

Reply via email to