I want to store an error in an array, but when I try this it tells me
System.IO.DirectoryNotFoundException is a type, which is not valid in the given context.
Type[] errorArray = new Type[] { System.IO.DirectoryNotFoundException };
Am I doing something wrong, or is it not possible this way?