You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2017/10/31 19:03:29 UTC
[06/12] logging-log4net git commit: Swap the arguments passed into
the ArgumentException ctor
Swap the arguments passed into the ArgumentException ctor
This change relates to LOG4NET-580.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/c4395397
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/c4395397
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/c4395397
Branch: refs/heads/develop
Commit: c439539719af7d3b3390f46cea87f0e027fe6921
Parents: 7be796f
Author: Dominik Psenner <dp...@apache.org>
Authored: Tue Oct 31 17:18:03 2017 +0100
Committer: Dominik Psenner <dp...@apache.org>
Committed: Tue Oct 31 17:18:03 2017 +0100
----------------------------------------------------------------------
src/Repository/Hierarchy/Hierarchy.cs | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/c4395397/src/Repository/Hierarchy/Hierarchy.cs
----------------------------------------------------------------------
diff --git a/src/Repository/Hierarchy/Hierarchy.cs b/src/Repository/Hierarchy/Hierarchy.cs
index 340604c..1843d96 100644
--- a/src/Repository/Hierarchy/Hierarchy.cs
+++ b/src/Repository/Hierarchy/Hierarchy.cs
@@ -734,12 +734,12 @@ namespace log4net.Repository.Hierarchy
if (name == string.Empty)
{
- throw new ArgumentException("name", "Invalid logger name: a logger name must not be empty.");
+ throw new ArgumentException("Invalid logger name: a logger name must not be empty.", "name");
}
if (name != name.Trim())
{
- throw new ArgumentException("name", "Invalid logger name: a logger name must not be prefixed or suffixed by whitespaces.");
+ throw new ArgumentException("Invalid logger name: a logger name must not be prefixed or suffixed by whitespaces.", "name");
}
LoggerKey key = new LoggerKey(name);
@@ -853,17 +853,17 @@ namespace log4net.Repository.Hierarchy
if (name == null)
{
- throw new ArgumentException("log", "Invalid logger name: a logger name must not be null.");
+ throw new ArgumentException("Invalid logger name: a logger name must not be null.", "log");
}
if (name == string.Empty)
{
- throw new ArgumentException("log", "Invalid logger name: a logger name must not be empty.");
+ throw new ArgumentException("Invalid logger name: a logger name must not be empty.", "log");
}
if (name != name.Trim())
{
- throw new ArgumentException("log", "Invalid logger name: a logger name must not be prefixed or suffixed with whitespaces.");
+ throw new ArgumentException("Invalid logger name: a logger name must not be prefixed or suffixed with whitespaces.", "log");
}
string[] nameParts = name.Split('.');
@@ -873,12 +873,12 @@ namespace log4net.Repository.Hierarchy
if (namePart == string.Empty)
{
- throw new ArgumentException("log", "Invalid logger name: a logger name must not contain a substring of two dots or more.");
+ throw new ArgumentException("Invalid logger name: a logger name must not contain a substring of two dots or more.", "log");
}
if (namePart != namePart.Trim())
{
- throw new ArgumentException("log", "Invalid logger name: each part in a logger name when split by a dot must not be prefixed or suffixed with whitespaces.");
+ throw new ArgumentException("Invalid logger name: each part in a logger name when split by a dot must not be prefixed or suffixed with whitespaces.", "log");
}
}