diff --git a/src/Microsoft.ML/TextLoader.cs b/src/Microsoft.ML/TextLoader.cs index f63a14611b..49be2ee84c 100644 --- a/src/Microsoft.ML/TextLoader.cs +++ b/src/Microsoft.ML/TextLoader.cs @@ -91,7 +91,7 @@ private string TypeToName(Type type) else if (type == typeof(bool)) return "BL"; else - throw new Exception("Type not implemented or supported."); //Add more types. + throw new System.NotSupportedException("Type ${type.FullName} is not implemented or supported."); //Add more types. } public ILearningPipelineStep ApplyStep(ILearningPipelineStep previousStep, Experiment experiment)