This documentation is archived and is not being maintained.

SPException Class

Windows SharePoint Services 3

Represents an exception in Windows SharePoint Services.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

[SerializableAttribute]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public class SPException : ApplicationException

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: