NETLink`
NETLink`

GetNETException

GetNETException[]

returns the .NET exception object that was thrown in the most recent call from the Wolfram Language to .NET.

Details and Options

  • To use GetNETException, you first need to load .NET/Link using Needs["NETLink`"].
  • Returns Null if no exception was thrown in the most recent call.
  • You can use GetNETException with $NETExceptionHandler to implement a custom exception-handling scheme.