FailedOperationException FailedOperationException FailedOperationException Class

Definition

The FailedOperationException class represents the exception raised when an operation fails. Failed database operations include CREATE, DROP, ALTER, SCRIPT, REFRESH, RENAME. This exception can also be raised when some of the public methods in SMO fail.

public ref class FailedOperationException sealed : Microsoft::SqlServer::Management::Smo::SmoException
public sealed class FailedOperationException : Microsoft.SqlServer.Management.Smo.SmoException
Public NotInheritable Class FailedOperationException
Inherits SmoException
Inheritance
Microsoft.SqlServer.Management.Common.SqlServerManagementExceptionMicrosoft.SqlServer.Management.Common.SqlServerManagementExceptionMicrosoft.SqlServer.Management.Common.SqlServerManagementException
FailedOperationExceptionFailedOperationExceptionFailedOperationException

Examples

Handling SMO Exceptions

Remarks

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Constructors

FailedOperationException() FailedOperationException() FailedOperationException()

Initializes a new instance of the FailedOperationException class.

FailedOperationException(String) FailedOperationException(String) FailedOperationException(String)

Initializes a new instance of the FailedOperationException class that has the specified message.

FailedOperationException(String, Exception) FailedOperationException(String, Exception) FailedOperationException(String, Exception)

Initializes a new instance of the FailedOperationException class that has the specified message and inner exception.

FailedOperationException(String, Object, Exception) FailedOperationException(String, Object, Exception) FailedOperationException(String, Object, Exception)

Initializes a new instance of the FailedOperationException class with the specified object on which the specified operation failed and that has the specified inner exception.

FailedOperationException(String, Object, Exception, String) FailedOperationException(String, Object, Exception, String) FailedOperationException(String, Object, Exception, String)

Initializes a new instance of the FailedOperationException class that has the specified object on which the specified operation failed, and that has the specified inner exception and reason for occurring.

Properties

FailedObject FailedObject FailedObject

Gets or sets the object on which the operation failed.

HelpLink HelpLink HelpLink

Gets the Help link for further information from Microsoft about the SMO exception.

(Inherited from SmoException)
Message Message Message

Gets the message text that explains the exception.

Operation Operation Operation

Gets or sets the operation that failed.

SmoExceptionType SmoExceptionType SmoExceptionType

Gets the exception type.

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Override based on the virtual System.Runtime.Serialization.SerializationInfo method GetObjectData.

SetHelpContext(String) SetHelpContext(String) SetHelpContext(String)

Sets the Help context value for the referenced exception.

(Inherited from SmoException)

Applies to