From 22778fbcf653fae17df35d9b1e09e593edb70cfb Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 17 Jul 2022 12:35:09 +0200 Subject: [PATCH] Defined a processor result to handle error states --- I18N Commander/Processor/ProcessorResult.cs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 I18N Commander/Processor/ProcessorResult.cs diff --git a/I18N Commander/Processor/ProcessorResult.cs b/I18N Commander/Processor/ProcessorResult.cs new file mode 100644 index 0000000..5678787 --- /dev/null +++ b/I18N Commander/Processor/ProcessorResult.cs @@ -0,0 +1,3 @@ +namespace Processor; + +public readonly record struct ProcessorResult(TResult? Result, bool Successful = true, string ErrorMessage = ""); \ No newline at end of file