Possible Duplicate:
how to use Java-style throws keyword in C#?
I am on a work placement at the moment, and doing c#. I am 1 year away from finishing uni where we have predominantly been taught Java.
If I was going to throw a checked exception in Java I would use:
public void saveToFile(String fileName) throws IOException
Is there similar syntax in C# for doing this but for my own custom exception?
Thanks