Click or drag to resize

ExceptionExtensions Class

[This is preliminary documentation and is subject to change.]

Extends the Exception class with methods to easily handle coded exceptions.
Inheritance Hierarchy
SystemObject
  NerdyDuck.CodedExceptionsExceptionExtensions

Namespace:  NerdyDuck.CodedExceptions
Assembly:  NerdyDuck.CodedExceptions (in NerdyDuck.CodedExceptions.dll) Version: 2.0.0+2040dad
Syntax
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public static class ExceptionExtensions
View Source

The ExceptionExtensions type exposes the following members.

Methods
  NameDescription
Public methodStatic memberGetErrorId
Gets the error identifier part of a HResult.
Public methodStatic memberGetFacilityId
Gets the facility (= the assembly) identifier part of an HResult.
Public methodStatic memberIsCodedException
Checks if the type of the specified instance of Exception or a derived class has a CodedExceptionAttribute.
Public methodStatic memberIsCustomHResult
Checks if the HResult of the exception is a custom error value.
Top
Remarks
Most functionality is available via the static methods of HResultHelper.
See Also