From 488fad44a1e134163fabb8c821063cc9f071244e Mon Sep 17 00:00:00 2001 From: Simon G Date: Fri, 18 Sep 2020 15:08:53 +0200 Subject: [PATCH] - add MissingTableException --- GBase/Exceptions/MissingTableException.cs | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 GBase/Exceptions/MissingTableException.cs diff --git a/GBase/Exceptions/MissingTableException.cs b/GBase/Exceptions/MissingTableException.cs new file mode 100644 index 0000000..1d6015b --- /dev/null +++ b/GBase/Exceptions/MissingTableException.cs @@ -0,0 +1,28 @@ +// Author: Gockner, Simon +// Created: 2020-09-18 +// Copyright(c) 2020 SimonG. All Rights Reserved. + +using System; + +namespace GBase.Exceptions +{ + /// + /// that the table for the given is missing + /// + public class MissingTableException : Exception + { + /// + /// that the table for the given is missing + /// + public MissingTableException(Type type) + : base($"There is no table for type {type}.") + { + Type = type; + } + + /// + /// The that has no table + /// + public Type Type { get; } + } +} \ No newline at end of file