Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="3.5.1-preview-627" />

 InvalidRegistrationException

Represents an exception the container throws when it detects an invalid registration.
using System; using System.Runtime.Serialization; namespace Stashbox.Exceptions { [Serializable] 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; } protected InvalidRegistrationException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }