DiagnosticsLoggerExtensions Module
Functions and values
Function or value |
Description
|
Full Usage:
PreserveStackTrace exn
Parameters:
'T
|
Instruct the exception not to reset itself when thrown again.
|
Full Usage:
tryAndDetectDev15
Returns: bool
|
|
Type extensions
Type extension |
Description
|
Full Usage:
this.Error
Parameters:
exn
Returns: 'T
|
Report a diagnostic as an error and raise `ReportedError`
Extended Type:
|
Full Usage:
this.ErrorR
Parameters:
exn
|
|
|
Perform error recovery from an exception if possible. - StopProcessingExn is not caught. - ReportedError is caught and ignored. - TargetInvocationException is unwrapped - If precisely a System.Exception or ArgumentException then the range is attached as InternalError. - Other exceptions are unchanged All are reported via the installed diagnostics logger
Extended Type:
|
Full Usage:
this.ErrorRecoveryNoRange
Parameters:
exn
|
Like ErrorRecover by no range is attached to System.Exception and ArgumentException.
Extended Type:
|
|
Simulates a diagnostic. For test purposes only.
Extended Type:
|
|
Perform error recovery from an exception if possible, including catching StopProcessingExn
Extended Type:
|
Full Usage:
this.Warning
Parameters:
exn
|