ServiceRequestException ServiceRequestException ServiceRequestException Constructors

Definition

Overloads

ServiceRequestException() ServiceRequestException() ServiceRequestException()

Initializes a new instance of the ServiceRequestException class.

ServiceRequestException(String) ServiceRequestException(String) ServiceRequestException(String)

Initializes a new instance of the ServiceRequestException class with the specified message.

ServiceRequestException(String, Exception) ServiceRequestException(String, Exception) ServiceRequestException(String, Exception)

Initializes a new instance of the ServiceRequestException class with the specified message and inner exception.

ServiceRequestException() ServiceRequestException() ServiceRequestException()

Initializes a new instance of the ServiceRequestException class.

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

Examples

Handling SMO Exceptions

Remarks

The default constructor initializes any fields to their default values.

ServiceRequestException(String) ServiceRequestException(String) ServiceRequestException(String)

Initializes a new instance of the ServiceRequestException class with the specified message.

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

A String value that specifies the message string for the Service Request exception.

Examples

Handling SMO Exceptions

ServiceRequestException(String, Exception) ServiceRequestException(String, Exception) ServiceRequestException(String, Exception)

Initializes a new instance of the ServiceRequestException class with the specified message and inner exception.

public:
 ServiceRequestException(System::String ^ message, Exception ^ innerException);
public ServiceRequestException (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 Service Request exception.

innerException
Exception Exception Exception

An Exception system object that specifies the inner exception for the Service Request exception.

Examples

Handling SMO Exceptions

Applies to