Delen via


ServerErrorException Constructors

Definition

Overloads

ServerErrorException(String)

Creates an instance of ServerErrorException with a specified error message and marks it as transient.

ServerErrorException(ErrorCode, String)

Creates an instance of ServerErrorException with a specified ErrorCode, error message and marks it as transient.

ServerErrorException(String, Exception)

Creates an instance of ServerErrorException with a specified error message and a reference to the inner exception that caused this exception, and marks it as transient.

ServerErrorException(String)

Creates an instance of ServerErrorException with a specified error message and marks it as transient.

public ServerErrorException(string message);
new Microsoft.Azure.Devices.Common.Exceptions.ServerErrorException : string -> Microsoft.Azure.Devices.Common.Exceptions.ServerErrorException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

ServerErrorException(ErrorCode, String)

Creates an instance of ServerErrorException with a specified ErrorCode, error message and marks it as transient.

public ServerErrorException(Microsoft.Azure.Devices.Common.Exceptions.ErrorCode code, string message);
new Microsoft.Azure.Devices.Common.Exceptions.ServerErrorException : Microsoft.Azure.Devices.Common.Exceptions.ErrorCode * string -> Microsoft.Azure.Devices.Common.Exceptions.ServerErrorException
Public Sub New (code As ErrorCode, message As String)

Parameters

code
ErrorCode

The ErrorCode associated with the error.

message
String

The message that describes the error.

Applies to

ServerErrorException(String, Exception)

Creates an instance of ServerErrorException with a specified error message and a reference to the inner exception that caused this exception, and marks it as transient.

public ServerErrorException(string message, Exception innerException);
new Microsoft.Azure.Devices.Common.Exceptions.ServerErrorException : string * Exception -> Microsoft.Azure.Devices.Common.Exceptions.ServerErrorException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to