- add MissingTableException

pull/27/head
Simon G 5 years ago
parent 8299f48eb3
commit 488fad44a1
  1. 28
      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
{
/// <summary>
/// <see cref="Exception"/> that the table for the given <see cref="Type"/> is missing
/// </summary>
public class MissingTableException : Exception
{
/// <summary>
/// <see cref="Exception"/> that the table for the given <see cref="Type"/> is missing
/// </summary>
public MissingTableException(Type type)
: base($"There is no table for type {type}.")
{
Type = type;
}
/// <summary>
/// The <see cref="Type"/> that has no table
/// </summary>
public Type Type { get; }
}
}
Loading…
Cancel
Save