Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Cobol .Net Exception Handling

$
0
0

Try the following:

         Catch myex as type Exception

             set str to "Source " & myex::Source

             set str = str & "Number " & myex::StackTrace

             set str = str & "Line Number " & myex::TargetSite

             set str = str & "Data Exception " & myex::GetType::ToString

             invoke type System.Diagnostics.Debug::WriteLine(str)

          end-try.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>