Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv7587
Modified Files:
ObjectDefinitionStoreException.cs
Log Message:
(Partial Fix) SPRNET-867 - Add line number to top level error message when there are XML parsing errors.
Index: ObjectDefinitionStoreException.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/ObjectDefinitionStoreException.cs,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** ObjectDefinitionStoreException.cs 8 Aug 2007 17:47:13 -0000 1.11
--- ObjectDefinitionStoreException.cs 4 Feb 2008 22:44:03 -0000 1.12
***************
*** 69,75 ****
/// Creates a new instance of the ObjectDefinitionStoreException class.
/// </summary>
! /// <param name="resourceDescription">
! /// The description of the resource associated with the object.
! /// </param>
/// <param name="name">
/// The name of the object that triggered the exception.
--- 69,75 ----
/// Creates a new instance of the ObjectDefinitionStoreException class.
/// </summary>
! /// <param name="resourceDescription">
! /// The description of the resource that the object definition came from
! /// </param>
/// <param name="name">
/// The name of the object that triggered the exception.
***************
*** 84,87 ****
--- 84,101 ----
}
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ObjectDefinitionStoreException"/> class.
+ /// </summary>
+ /// <param name="resourceDescription">
+ /// The description of the resource that the object definition came from
+ /// </param>
+ /// <param name="msg">The detail message (used as exception message as-is)</param>
+ /// <param name="cause">The root cause. (may be <code>null</code></param>
+ public ObjectDefinitionStoreException(string resourceDescription, string msg, Exception cause)
+ : this(msg, cause)
+ {
+ _resourceDescription = resourceDescription;
+ }
+
/// <summary>
/// Creates a new instance of the ObjectDefinitionStoreException class.
***************
*** 135,141 ****
/// Creates a new instance of the ObjectDefinitionStoreException class.
/// </summary>
! /// <param name="resourceDescription">
! /// The description of the resource associated with the object.
! /// </param>
/// <param name="message">
/// A message about the exception.
--- 149,155 ----
/// Creates a new instance of the ObjectDefinitionStoreException class.
/// </summary>
! /// <param name="resourceDescription">
! /// The description of the resource that the object definition came from
! /// </param>
/// <param name="message">
/// A message about the exception.
***************
*** 234,239 ****
}
! private string _resourceDescription = string.Empty;
! private string _objectName = string.Empty;
}
}
\ No newline at end of file
--- 248,260 ----
}
! /// <summary>
! /// The description of the resource associated with the object
! /// </summary>
! protected string _resourceDescription = string.Empty;
!
! /// <summary>
! /// The name of the object that trigger the exception.
! /// </summary>
! protected string _objectName = string.Empty;
}
}
\ No newline at end of file
|