- add invalid and missing key exception

master
Simon G 5 years ago
parent 69c4b573a5
commit f1c89018ed
  1. 17
      GBase/Exceptions/InvalidKeyException.cs
  2. 17
      GBase/Exceptions/MissingKeyColumnException.cs

@ -0,0 +1,17 @@
// Author: Gockner, Simon
// Created: 2020-11-13
// Copyright(c) 2020 SimonG. All Rights Reserved.
using System;
namespace GBase.Exceptions
{
public class InvalidKeyException : Exception
{
public InvalidKeyException(string message)
: base(message)
{
}
}
}

@ -0,0 +1,17 @@
// Author: Gockner, Simon
// Created: 2020-11-13
// Copyright(c) 2020 SimonG. All Rights Reserved.
using System;
namespace GBase.Exceptions
{
public class MissingKeyColumnException<T> : Exception
{
public MissingKeyColumnException()
: base($"Type {typeof(T)} is missing a key column.")
{
}
}
}
Loading…
Cancel
Save