Header menu logo fantomas

DiagnosticsLoggerExtensions Module

Functions and values

Function or value Description

PreserveStackTrace exn

Full Usage: PreserveStackTrace exn

Parameters:
    exn : 'T

Instruct the exception not to reset itself when thrown again.

exn : 'T

tryAndDetectDev15

Full Usage: tryAndDetectDev15

Returns: bool
Returns: bool

Type extensions

Type extension Description

this.Error

Full Usage: this.Error

Parameters:
    exn : exn

Returns: 'T

Report a diagnostic as an error and raise `ReportedError`

Extended Type: DiagnosticsLogger

exn : exn
Returns: 'T

this.ErrorR

Full Usage: this.ErrorR

Parameters:
    exn : exn

Report a diagnostic as an error and recover

Extended Type: DiagnosticsLogger

exn : exn

this.ErrorRecovery

Full Usage: this.ErrorRecovery

Parameters:

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: DiagnosticsLogger

exn : exn
m : range

this.ErrorRecoveryNoRange

Full Usage: this.ErrorRecoveryNoRange

Parameters:
    exn : exn

Like ErrorRecover by no range is attached to System.Exception and ArgumentException.

Extended Type: DiagnosticsLogger

exn : exn

this.SimulateError

Full Usage: this.SimulateError

Parameters:
Returns: 'T

Simulates a diagnostic. For test purposes only.

Extended Type: DiagnosticsLogger

diagnostic : PhasedDiagnostic
Returns: 'T

this.StopProcessingRecovery

Full Usage: this.StopProcessingRecovery

Parameters:

Perform error recovery from an exception if possible, including catching StopProcessingExn

Extended Type: DiagnosticsLogger

exn : exn
m : range

this.Warning

Full Usage: this.Warning

Parameters:
    exn : exn

Report a diagnostic as a warning and recover

Extended Type: DiagnosticsLogger

exn : exn

Type something to start searching.