I’m trying to throw an InvalidDataException
:
using System.IO;
// and in some method...
throw new InvalidDataException("You are a bad, bad boy.");
…and getting:
The type or namespace name `InvalidDataException’ could not be found. Are you missing a directive or an assembly reference?
I see that this exception is available since .Net 2.0, but maybe it is not available in Unity, or maybe I am doing something really dumb. Which one?