Files
Hasebe/Library/PackageCache/com.gustavopsantos.reflex@7857b9937c99/Exceptions/ContractDefinitionException.cs
T
2026-09-21 12:15:57 +03:00

17 lines
487 B
C#

using System;
using Reflex.Extensions;
namespace Reflex.Exceptions
{
internal sealed class ContractDefinitionException : Exception
{
public ContractDefinitionException(Type concrete, Type contract) : base(GenerateMessage(concrete, contract))
{
}
private static string GenerateMessage(Type concrete, Type contract)
{
return $"{concrete.GetFullName()} does not implement {contract.GetFullName()} contract";
}
}
}