SPException Class
The SPException class represents an exception in Microsoft Windows SharePoint Services.
System.Object
System.Exception
System.ApplicationException
Microsoft.SharePoint.SPException
Public Properties
The following table shows the public properties of the SPException class, the data type of each property, and a brief description of each.
Name | Data Type | Description |
---|---|---|
ErrorCode | Int32 | Gets an integer that identifies the exception. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
Remarks
The SPException class is generally used to indicate a violation of a requirement in Windows SharePoint Services. For example, attempting to delete the site template gallery creates an exception.
Requirements
Namespace: Microsoft.SharePoint
Platforms: Microsoft Windows Server 2003
Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)
Security: Code Access Security