InvalidRegistrationException public class InvalidRegistrationException : Exception Represents an exception the container throws when it detects an invalid registration. Documentation Code public Type Type { get; } The type the container is trying to register. public InvalidRegistrationException(Type type, string message, Exception innerException = null) Constructs a InvalidRegistrationException.