Enforcing exception handling

  • Thread starter Thread starter Jeff Stewart
  • Start date Start date
J

Jeff Stewart

Does VB.NET provide a mechanism for enforcing exception handling? I've used
other languages that can have "throws ..." clauses added to method
declarations, but I can't find anything like that for VB.
 
Jeff,

Jeff Stewart said:
Does VB.NET provide a mechanism for enforcing exception handling? I've
used other languages that can have "throws ..." clauses added to method
declarations, but I can't find anything like that for VB.

There is nothing like Java's checked exceptions availabe in .NET, for good
reasons. The article below describes these reasons. Although it's written
for C#, the points apply to VB.NET too:

Why doesn't C# have exception specifications?
<URL:http://msdn.microsoft.com/vcsharp/team/language/ask/exceptionspecs/default.aspx>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top