ExceptionExtensions Class

Definition

Caution

Not recommended for external use.

Extension methods for Exception class.

[System.Obsolete("Not recommended for external use.")]
public static class ExceptionExtensions
[<System.Obsolete("Not recommended for external use.")>]
type ExceptionExtensions = class
Public Module ExceptionExtensions
Inheritance
ExceptionExtensions
Attributes

Methods

CheckIotHubErrorCode(Exception, ErrorCode[])

Indicates if the supplied exception is an IoT hub exception and its error code belongs to the supplied error code list.

DisablePrepareForRethrow(Exception)

Mark the exception as ineligible for re-throwing.

GetReferenceCode(Exception)

Gets the exception Id from the given exception.

IsFatal(Exception)

Indicates whether the exception is considered fatal.

PrepareForRethrow(Exception)

Prepares a given exception for re-throwing.

ToStringSlim(Exception)

Stringify the exception, containing all relevant fields.

Unwind(Exception)

Unwinds the inner exceptions from a given exception.

Unwind(Exception, Type[])

Unwinds the inner exceptions from a given exception.

Unwind<TException>(Exception)

Unwinds the inner exceptions from a given exception.

Applies to