InvalidRegistrationException public class InvalidRegistrationException : ExceptionBaseException Represents an exception the container throws when it detects an invalid registration. Documentation Code public InvalidRegistrationException(Type type, string message, Exception innerException = null) Constructs a InvalidRegistrationException.