HierarchyIdException Class
SQL Server 2012
The exception that is thrown for invalid SqlHierarchyId values.
Namespace: Microsoft.SqlServer.Types
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
The HierarchyIdException type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | HierarchyIdException() | Initializes a new instance of the HierarchyIdException class. |
![]() | HierarchyIdException(String) | Initializes a new instance of the HierarchyIdException class with a custom error message. |
![]() | HierarchyIdException(SerializationInfo, StreamingContext) | Initializes a new instance of the HierarchyIdException class with serialized data. |
![]() | HierarchyIdException(String, Exception) | Initializes a new instance of the HierarchyIdExceptionclass with a custom error message and the triggering exception object. |
| Name | Description | |
|---|---|---|
![]() | Data | (Inherited from Exception.) |
![]() | HelpLink | (Inherited from Exception.) |
![]() | HResult | (Inherited from Exception.) |
![]() | InnerException | (Inherited from Exception.) |
![]() | Message | (Inherited from Exception.) |
![]() | Source | (Inherited from Exception.) |
![]() | StackTrace | (Inherited from Exception.) |
![]() | TargetSite | (Inherited from Exception.) |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetBaseException | (Inherited from Exception.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetObjectData | (Inherited from Exception.) |
![]() | GetType | (Inherited from Exception.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Exception.) |
The HierarchyIdException exception is thrown when a value that is not a SqlHierarchyId type is passed to a method that expects a SqlHierarchyId type.
For more information, see Working with hierarchyid Data.
