Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.2.4" />

 InvalidRegistrationException

Represents an exception the container throws when it detects an invalid registration.
using System; namespace Stashbox.Exceptions { public class InvalidRegistrationException : Exception { public Type Type { get; } public InvalidRegistrationException(Type type, string message, Exception innerException = null) : base("Invalid registration with type " + type.FullName + ". Details: " + message, innerException) { Type = type; } } }