M
mp
I have a class which is responsible to "open and read" a file.
so I have a filename in the constructor of the class
how best to raise exception if filename not valid(or not found)?
//constructor
public cLispFile(string FileName)
{
if (File.Exists(FileName))
{...}
else
{
//what to put here?...raise exception?
throw new Exception("file not found"); //????????????
}
}
thanks
mark
so I have a filename in the constructor of the class
how best to raise exception if filename not valid(or not found)?
//constructor
public cLispFile(string FileName)
{
if (File.Exists(FileName))
{...}
else
{
//what to put here?...raise exception?
throw new Exception("file not found"); //????????????
}
}
thanks
mark