Skip to content

Commit 3780923

Browse files
spiederwalshglebuk
authored andcommitted
Update TextLoader.cs (#129)
Make a 'not supported field type' exception more readable, so the developer could figure out why he can't load the data This closes #128
1 parent ea07be8 commit 3780923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.ML/TextLoader.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private string TypeToName(Type type)
9191
else if (type == typeof(bool))
9292
return "BL";
9393
else
94-
throw new Exception("Type not implemented or supported."); //Add more types.
94+
throw new System.NotSupportedException("Type ${type.FullName} is not implemented or supported."); //Add more types.
9595
}
9696

9797
public ILearningPipelineStep ApplyStep(ILearningPipelineStep previousStep, Experiment experiment)

0 commit comments

Comments
 (0)