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