Open sandboxFocus

Method OnInternalException

OnInternalException(Exception, LoggingTypeSource)

Called when an exception is caught in logging code.

Declaration
public static void OnInternalException(Exception exception, LoggingTypeSource source)
Parameters
Type Name Description
Exception exception

The caught exception, or null if it is not available.

LoggingTypeSource source

The relevant LoggingTypeSource, or null if it could not be determined.

OnInternalException(Exception, LoggingTypeSource, LogRecordBuilder)

Called when an exception is caught in logging code. This overload disposes the LogRecordBuilder.

Declaration
public static void OnInternalException(Exception exception, LoggingTypeSource source, LogRecordBuilder recordBuilder)
Parameters
Type Name Description
Exception exception

The caught exception, or null if it is not available.

LoggingTypeSource source

The relevant LoggingTypeSource, or null if it could not be determined.

LogRecordBuilder recordBuilder

An optional LogRecordBuilder that will be disposed.