WebManagementServiceException Constructors

Definition

Initializes a new instance of the WebManagementServiceException class.

Overloads

WebManagementServiceException()

Initializes a new instance of the WebManagementServiceException class.

WebManagementServiceException(String)

Initializes a new instance of the WebManagementServiceException class that uses the specified error message.

WebManagementServiceException(String, Exception)

Initializes a new instance of the WebManagementServiceException class that uses the specified error message and a reference to the inner exception that is the cause of this exception.

WebManagementServiceException(String, String)

Initializes a new instance of the WebManagementServiceException class that uses the specified error message and the resource name of the localized error message.

WebManagementServiceException(String, String, Exception)

Initializes a new instance of the WebManagementServiceException class that uses the specified error message, the resource name of the localized error message, and a reference to the inner exception that is the cause of this exception.

WebManagementServiceException()

Initializes a new instance of the WebManagementServiceException class.

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

Remarks

This constructor initializes the System.Exception.Message property of the new instance to System.String.Empty.

Applies to

WebManagementServiceException(String)

Initializes a new instance of the WebManagementServiceException class that uses the specified error message.

public:
 WebManagementServiceException(System::String ^ errorMessage);
public WebManagementServiceException (string errorMessage);
new Microsoft.Web.Management.Server.WebManagementServiceException : string -> Microsoft.Web.Management.Server.WebManagementServiceException
Public Sub New (errorMessage As String)

Parameters

errorMessage
String

The error message.

Remarks

The content of the errorMessage parameter should be human readable. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Applies to

WebManagementServiceException(String, Exception)

Initializes a new instance of the WebManagementServiceException class that uses the specified error message and a reference to the inner exception that is the cause of this exception.

public:
 WebManagementServiceException(System::String ^ errorMessage, Exception ^ exception);
public WebManagementServiceException (string errorMessage, Exception exception);
new Microsoft.Web.Management.Server.WebManagementServiceException : string * Exception -> Microsoft.Web.Management.Server.WebManagementServiceException

Parameters

errorMessage
String

The error message.

exception
Exception

The exception that is the cause of the current exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the System.Exception.InnerException property. InnerException gets the same value that is passed into the constructor, or InnerException returns null if it does not supply the inner exception value to the constructor.

Applies to

WebManagementServiceException(String, String)

Initializes a new instance of the WebManagementServiceException class that uses the specified error message and the resource name of the localized error message.

public:
 WebManagementServiceException(System::String ^ resourceName, System::String ^ errorMessage);
public WebManagementServiceException (string resourceName, string errorMessage);
new Microsoft.Web.Management.Server.WebManagementServiceException : string * string -> Microsoft.Web.Management.Server.WebManagementServiceException
Public Sub New (resourceName As String, errorMessage As String)

Parameters

resourceName
String

The name of the resource that is used to show a localized error message.

errorMessage
String

The error message.

Applies to

WebManagementServiceException(String, String, Exception)

Initializes a new instance of the WebManagementServiceException class that uses the specified error message, the resource name of the localized error message, and a reference to the inner exception that is the cause of this exception.

public:
 WebManagementServiceException(System::String ^ resourceName, System::String ^ errorMessage, Exception ^ innerException);
public WebManagementServiceException (string resourceName, string errorMessage, Exception innerException);
new Microsoft.Web.Management.Server.WebManagementServiceException : string * string * Exception -> Microsoft.Web.Management.Server.WebManagementServiceException
Public Sub New (resourceName As String, errorMessage As String, innerException As Exception)

Parameters

resourceName
String

The name of the resource that is used to show a localized error message.

errorMessage
String

The error message.

innerException
Exception

The exception that is the cause of the current exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the System.Exception.InnerException property. InnerException gets the same value that is passed into the constructor, or InnerException returns null if it does not supply the inner exception value to the constructor.

Applies to