From: <fab...@us...> - 2010-08-14 16:58:55
|
Revision: 5143 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5143&view=rev Author: fabiomaulo Date: 2010-08-14 16:58:49 +0000 (Sat, 14 Aug 2010) Log Message: ----------- Minor (extracted exception message template) Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Driver/ReflectionBasedDriver.cs Modified: trunk/nhibernate/src/NHibernate/Driver/ReflectionBasedDriver.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Driver/ReflectionBasedDriver.cs 2010-08-14 16:52:58 UTC (rev 5142) +++ trunk/nhibernate/src/NHibernate/Driver/ReflectionBasedDriver.cs 2010-08-14 16:58:49 UTC (rev 5143) @@ -5,6 +5,11 @@ { public abstract class ReflectionBasedDriver : DriverBase { + protected const string ReflectionTypedProviderExceptionMessageTemplate = "The IDbCommand and IDbConnection implementation in the assembly {0} could not be found. " + + "Ensure that the assembly {0} is located in the application directory or in the Global " + + "Assembly Cache. If the assembly is in the GAC, use <qualifyAssembly/> element in the " + + "application configuration file to specify the full name of the assembly."; + private readonly IDriveConnectionCommandProvider connectionCommandProvider; /// <summary> @@ -22,13 +27,7 @@ if (connectionType == null || commandType == null) { - throw new HibernateException( - string.Format( - "The IDbCommand and IDbConnection implementation in the assembly {0} could not be found. " - + "Ensure that the assembly {0} is located in the application directory or in the Global " - + "Assembly Cache. If the assembly is in the GAC, use <qualifyAssembly/> element in the " - + "application configuration file to specify the full name of the assembly.", - driverAssemblyName)); + throw new HibernateException(string.Format(ReflectionTypedProviderExceptionMessageTemplate, driverAssemblyName)); } connectionCommandProvider = new ReflectionDriveConnectionCommandProvider(connectionType, commandType); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |