FailedOperationException FailedOperationException FailedOperationException Constructors

Definition

Overloads

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.

FailedOperationException() FailedOperationException() FailedOperationException()

Initializes a new instance of the FailedOperationException class.

public:
 FailedOperationException();
public FailedOperationException ();
Public Sub New ()

Examples

Handling SMO Exceptions

Remarks

The default constructor initializes any fields to their default values.

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

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

public:
 FailedOperationException(System::String ^ message);
public FailedOperationException (string message);
Public Sub New (message As String)
Parameters
message
String String String

A String value that specifies the message string for the Failed Operation exception.

Examples

Handling SMO Exceptions

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.

public:
 FailedOperationException(System::String ^ message, Exception ^ innerException);
public FailedOperationException (string message, Exception innerException);
Public Sub New (message As String, innerException As Exception)
Parameters
message
String String String

A String value that specifies the message string for the Failed Operation exception.

innerException
Exception Exception Exception

An Exception object that specifies the inner exception for the Failed Operation exception.

Examples

Handling SMO Exceptions

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.

public:
 FailedOperationException(System::String ^ operation, System::Object ^ failedObject, Exception ^ innerException);
public FailedOperationException (string operation, object failedObject, Exception innerException);
Public Sub New (operation As String, failedObject As Object, innerException As Exception)
Parameters
operation
String String String

A String object that specifies the operation that failed.

failedObject
Object Object Object

An Object system object value that specifies the object on which the operation failed.

innerException
Exception Exception Exception

An Exception system object value that specifies the inner exception for the Failed Operation exception.

Examples

Handling SMO Exceptions

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.

public:
 FailedOperationException(System::String ^ operation, System::Object ^ failedObject, Exception ^ innerException, System::String ^ reason);
public FailedOperationException (string operation, object failedObject, Exception innerException, string reason);
Public Sub New (operation As String, failedObject As Object, innerException As Exception, reason As String)
Parameters
operation
String String String

A String value that specifies the operation that failed.

failedObject
Object Object Object

An Object system object value that specifies the object on which the operation failed.

innerException
Exception Exception Exception

An Exception system object value that specifies the inner exception for the Failed Operation exception.

reason
String String String

A String value that specifies the reason why the exception occurred.

Examples

Handling SMO Exceptions

Applies to