DatabaseException Class
The DatabaseException class represents the exception that is thrown when a database error occurs while working with the objects in the Topology namespace.
System.Object
System.Exception
Microsoft.SharePoint.Portal.Topology.DatabaseException
Public Constructors
The following table shows the constructors of the DatabaseException class and a brief description of each.
Name | Description |
---|---|
DatabaseException | Initializes a new instance of the DatabaseException class based on the specified message. |
DatabaseException | Initializes a new instance of the DatabaseException class based on the specified message and error number. |
DatabaseException | Initializes a new instance of the DatabaseException class based on the specified message, error number, and underlying exception. |
Public Properties
The following table shows the properties of the DatabaseException class, the data type of each property, and a brief description of each.
Name | Data type | Description |
---|---|---|
Message | String | Gets a message that describes the database exception. |
Number | Int32 | Gets the number associated with the database exception. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Remarks
A DatabaseException object reports a problem that occurs while working with the database records that store information about the topology. Possible causes include an unexpected return value or a return value that indicates an error condition for a stored procedure.
To use the properties and methods of the objects in the Topology namespace you must be a member of the local STS_WPG and SPS_WPG security groups, and a member of the db_owner database role for the configuration database.
In addition, for certain methods, such as those that create a portal site, you must be a member of the local Administrators group, and have membership in the Database Creators and Security Administrators server roles in the SQL Server instance that hosts the configuration database.
Requirements
Namespace: Microsoft.SharePoint.Portal.Topology
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security