17 references to Except
Microsoft.ML.Core (17)
CommandLine\CmdParser.cs (1)
1484throw Contracts.Except("Invalid argument type: '{0}'", ItemValueType.Name);
ComponentModel\ComponentCatalog.cs (14)
256throw Contracts.Except("Can't instantiate class '{0}'", Type.Name); 289throw Contracts.Except("Loadable class '{0}' does not derive from '{1}'", LoadNames[0], typeof(TRes).FullName); 299throw Contracts.Except("Loadable class '{0}' does not derive from '{1}'", LoadNames[0], typeof(TRes).FullName); 315throw Contracts.Except("Loadable class '{0}' has ArgType '{1}', which has no suitable constructor", 357throw Contracts.Except("Method '{0}' has {1} parameters, but must have 2 or 3", method.Name, parameters.Length); 359throw Contracts.Except("Method '{0}', 1st parameter is {1}, but must be IHostEnvironment", method.Name, parameters[0].ParameterType); 363throw Contracts.Except("Method '{0}' returns {1}, but must return a class", method.Name, outputType); 421throw Contracts.Except("Invalid component kind: '{0}'", Kind); 425throw Contracts.Except("Component name '{0}' is not valid.", Name); 428throw Contracts.Except("Component '{0}' has an invalid alias '{1}'", Name, Aliases.First(x => !IsValidName(x))); 431throw Contracts.Except("Component '{0}' must inherit from IComponentFactory", argumentType); 610throw Contracts.Except("Component signature '{0}' doesn't inherit from '{1}'", faceType, typeof(IComponentFactory)); 982throw Contracts.Except("Unknown loadable class: {0}", name).MarkSensitive(MessageSensitivity.None); 1034throw Contracts.Except("Can't instantiate arguments object '{0}' for '{1}'", info.ArgType.Name, name);
Data\RoleMappedSchema.cs (1)
307throw Contracts.Except("Expected exactly one column with role '{0}', but found {1}.", role.Value, Utils.Size(infos));
Utilities\SubsetStream.cs (1)
123throw Contracts.Except("cannot write {0} bytes to stream bounded at {1} bytes", count, _remaining);