Export (0) Print
Expand All

FailedOperationException Class

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.

Object
  Exception
    SqlServerManagementException
      Microsoft.SqlServer.Management.Smo.SmoException
        Microsoft.SqlServer.Management.Smo.FailedOperationException

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public final class FailedOperationException extends SmoException

The FailedOperationException type exposes the following members.

  NameDescription
Public methodFailedOperationException()Initializes a new instance of the FailedOperationException class.
Public methodFailedOperationException(String)Initializes a new instance of the FailedOperationException class that has the specified message.
Public methodFailedOperationException(String, Exception)Initializes a new instance of the FailedOperationException class that has the specified message and inner exception.
Public methodFailedOperationException(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.
Public methodFailedOperationException(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.
Top

  NameDescription
Public propertyData (Inherited from Exception.)
Public propertyFailedObjectGets or sets the object on which the operation failed.
Public propertyHelpLinkGets the Help link for further information from Microsoft about the SMO exception. (Inherited from SmoException.)
Public propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessageGets the message text that explains the exception. (Overrides ExceptionMessage.)
Public propertyOperationGets or sets the operation that failed.
Public propertySmoExceptionTypeGets the exception type. (Overrides SmoException.SmoExceptionType.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataOverride based on the virtual SerializationInfo method GetObjectData. (Overrides ExceptionGetObjectData(SerializationInfo, StreamingContext).)
Public methodGetType (Inherited from Exception.)
Protected methodSetHelpContextSets the Help context value for the referenced exception. (Inherited from SmoException.)
Public methodToString (Inherited from Exception.)
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft