Skip to main content

Problem:

How to trap exception in COBOL .NET?

Resolution:

You can find documentation on how to handle exceptions using the TRY statement from the Net Express with .NET Help. Just follow the steps below:

1. Click on Help > Index

2. Make sure "Micro Focus Net Express with .NET" is selected from the "Filtered by" drop-down list

3. Type in "exception" from the "Look for field"

4. Double-click on "structured", which is right below "exception handling" in the list of topics

That will lead you to the page where it addresses about structured exception handling and the usage of the TRY/CATCH/FINALLY/END-TRY control structure. It also refers to an existing sample, which is in Net Express with .NET\\Examples\\LRM Samples\\Exceptions folder.

Old KB# 3944