ExceptionExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for