From deac020513bac2749a682f8cb43477f2162f3969 Mon Sep 17 00:00:00 2001 From: Simon Schmid Date: Mon, 14 Nov 2022 17:47:05 +0100 Subject: [PATCH] Extract SherlogAssertException to file --- src/Sherlog/Logger.cs | 7 ------- src/Sherlog/SherlogAssertException.cs | 9 +++++++++ 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 src/Sherlog/SherlogAssertException.cs diff --git a/src/Sherlog/Logger.cs b/src/Sherlog/Logger.cs index 8ed6f9d..4a73f2b 100644 --- a/src/Sherlog/Logger.cs +++ b/src/Sherlog/Logger.cs @@ -1,5 +1,3 @@ -using System; - namespace Sherlog { public delegate void LogDelegate(Logger logger, LogLevel logLevel, string message); @@ -38,9 +36,4 @@ void Log(LogLevel logLvl, string message) public void Reset() => OnLog = null; } - - public class SherlogAssertException : Exception - { - public SherlogAssertException(string message) : base(message) { } - } } diff --git a/src/Sherlog/SherlogAssertException.cs b/src/Sherlog/SherlogAssertException.cs new file mode 100644 index 0000000..92fef49 --- /dev/null +++ b/src/Sherlog/SherlogAssertException.cs @@ -0,0 +1,9 @@ +using System; + +namespace Sherlog +{ + public class SherlogAssertException : Exception + { + public SherlogAssertException(string message) : base(message) { } + } +}