Delen via


UnauthorizedException Constructors

Definition

Overloads

UnauthorizedException(String)

Creates an instance of this class with a specified error message and marks it as non-transient.

UnauthorizedException(ErrorCode, String)

Creates an instance of this class with a specified ErrorCode, error message and marks it as non-transient.

UnauthorizedException(String, Exception)

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

UnauthorizedException(String)

Creates an instance of this class with a specified error message and marks it as non-transient.

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

Parameters

message
String

Applies to

UnauthorizedException(ErrorCode, String)

Creates an instance of this class with a specified ErrorCode, error message and marks it as non-transient.

public UnauthorizedException (Microsoft.Azure.Devices.Common.Exceptions.ErrorCode code, string message);
new Microsoft.Azure.Devices.Common.Exceptions.UnauthorizedException : Microsoft.Azure.Devices.Common.Exceptions.ErrorCode * string -> Microsoft.Azure.Devices.Common.Exceptions.UnauthorizedException
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

UnauthorizedException(String, Exception)

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

public UnauthorizedException (string message, Exception innerException);
new Microsoft.Azure.Devices.Common.Exceptions.UnauthorizedException : string * Exception -> Microsoft.Azure.Devices.Common.Exceptions.UnauthorizedException
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