Package: NET
Capture error information for .NET exception
Process information from a NET.NetException
object
to handle .NET errors. This class is derived from MException
.
constructs
instance e
= NET.NetException(msgID
,errMsg
,netObj
)e
of NET.NetException
class.
|
message identifier |
|
error message text |
|
|
|
|
See the methods of the base class MException
.
Display error information after trying to load an unknown assembly:
try NET.addAssembly('C:\Work\invalidfile.dll') catch e e.message; if(isa(e, 'NET.NetException')) eObj = e.ExceptionObject end end
ans = Message: Could not load file or assembly 'file:///C:\Work\invalidfile.dll' or one of its dependencies. The system cannot find the file specified. Source: mscorlib HelpLink: eObj = FileNotFoundException with properties: Message: [1x1 System.String] FileName: [1x1 System.String] FusionLog: [1x1 System.String] Data: [1x1 System.Collections.ListDictionaryInternal] InnerException: [] TargetSite: [1x1 System.Reflection.RuntimeMethodInfo] StackTrace: [1x1 System.String] HelpLink: [] Source: [1x1 System.String]