I'm writing a wrapper around some filesystem stuff in C#, and I was wondering if the "LoadFile" function should throw a (custom) FileNotFoundException, or just return null?
There is a "FileExists" function, so I guess I could just throw an exception and trust the caller, but I can see how failing gracefully would lead to an easier to handle class.
I'd like to ask for pros and cons.