From d8e59284d00267a0f56c48e3805fa53e4417c00a Mon Sep 17 00:00:00 2001 From: Simon G Date: Sun, 9 Feb 2020 00:33:50 +0100 Subject: [PATCH] - add missingArgumentException --- .../Exceptions/MissingArgumentException.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 GBase.Server/Exceptions/MissingArgumentException.cs diff --git a/GBase.Server/Exceptions/MissingArgumentException.cs b/GBase.Server/Exceptions/MissingArgumentException.cs new file mode 100644 index 0000000..a4c3721 --- /dev/null +++ b/GBase.Server/Exceptions/MissingArgumentException.cs @@ -0,0 +1,19 @@ +// Author: Simon Gockner +// Created: 2020-02-08 +// Copyright(c) 2020 SimonG. All Rights Reserved. + +using System; + +namespace GBase.Server.Exceptions +{ + public class MissingArgumentException : Exception + { + public MissingArgumentException(string argumentPrefix) + : base($"Missing Argument for prefix {argumentPrefix}.") + { + ArgumentPrefix = argumentPrefix; + } + + public string ArgumentPrefix { get; } + } +} \ No newline at end of file