Hello Every Body:
I am looking for a way to force other developers to try/catch when using a function or a sub. For example, in Java I can add the "throws" reserverd word to the declaration of a method. Therefore forcing any developer to use try/catch when using this method. Otherwise the class will not compile. Here's an example (in java):
public void readFile() throws SomeException
{
...
}
How can I get the same in VB.net ??
I am looking for a way to force other developers to try/catch when using a function or a sub. For example, in Java I can add the "throws" reserverd word to the declaration of a method. Therefore forcing any developer to use try/catch when using this method. Otherwise the class will not compile. Here's an example (in java):
public void readFile() throws SomeException
{
...
}
How can I get the same in VB.net ??