Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv17021/src/Spring/Spring.Core/Objects/Factory
Modified Files:
ObjectCurrentlyInCreationException.cs
Log Message:
SPRNET-953
SPRNET-952
SPRNET-949
SPRNET-948
SPRNET-947
Index: ObjectCurrentlyInCreationException.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/ObjectCurrentlyInCreationException.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ObjectCurrentlyInCreationException.cs 5 Dec 2007 00:28:04 -0000 1.6
--- ObjectCurrentlyInCreationException.cs 29 May 2008 12:13:27 -0000 1.7
***************
*** 45,48 ****
--- 45,53 ----
{
/// <summary>
+ /// The default error message text to be used, if none is specified.
+ /// </summary>
+ public const string DEFAULTMESSAGE = "Requested object is currently in creation: Is there an unresolvable circular reference?";
+
+ /// <summary>
/// Creates a new instance of the
/// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class.
***************
*** 56,64 ****
/// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class.
/// </summary>
! /// <param name="message">
! /// A message about the exception.
/// </param>
! public ObjectCurrentlyInCreationException(string message)
! : base(message)
{
}
--- 61,69 ----
/// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class.
/// </summary>
! /// <param name="objectName">
! /// The name of the object that triggered the exception.
/// </param>
! public ObjectCurrentlyInCreationException(string objectName)
! : this(null, objectName, null, null)
{
}
***************
*** 68,79 ****
/// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class.
/// </summary>
! /// <param name="message">
! /// A message about the exception.
/// </param>
/// <param name="rootCause">
/// The root exception that is being wrapped.
/// </param>
! public ObjectCurrentlyInCreationException(string message, Exception rootCause)
! : base(message, rootCause)
{
}
--- 73,84 ----
/// <see cref="Spring.Objects.Factory.ObjectCurrentlyInCreationException"/> class.
/// </summary>
! /// <param name="objectName">
! /// The name of the object that triggered the exception.
/// </param>
/// <param name="rootCause">
/// The root exception that is being wrapped.
/// </param>
! public ObjectCurrentlyInCreationException(string objectName, Exception rootCause)
! : this(null, objectName, null, rootCause)
{
}
***************
*** 107,112 ****
/// The root exception that is being wrapped.
/// </param>
! public ObjectCurrentlyInCreationException(
! string objectName, string message, Exception rootCause)
: this(null, objectName, message, rootCause)
{
--- 112,116 ----
/// The root exception that is being wrapped.
/// </param>
! public ObjectCurrentlyInCreationException(string objectName, string message, Exception rootCause)
: this(null, objectName, message, rootCause)
{
***************
*** 157,161 ****
: base(resourceDescription,
objectName,
! StringUtils.HasText(message) ? message : "Requested object is currently in creation: Is there an unresolvable circular reference?",
rootCause)
{
--- 161,165 ----
: base(resourceDescription,
objectName,
! StringUtils.HasText(message) ? message : DEFAULTMESSAGE,
rootCause)
{
|