Breaking 05_03 in twain

This commit is contained in:
Jess Chadwick
2018-06-11 01:44:36 -04:00
parent 20458e435e
commit cedb4e8f46
299 changed files with 61234 additions and 85 deletions

View File

@ -0,0 +1,25 @@
using System;
namespace HPlusSports
{
public class EntityNotFoundException : ApplicationException
{
public object Id { get; }
public Type Type { get; }
public EntityNotFoundException(Type type, object id)
: base($"Entity ${id?.ToString()} of type ${type?.Name} not found.")
{
Type = type;
Id = id;
}
}
public class EntityNotFoundException<T> : EntityNotFoundException
{
public EntityNotFoundException(object id) : base(typeof(T), id)
{
}
}
}