Delen via


MessageTooLargeException Constructors

Definition

Overloads

MessageTooLargeException(Int32)

Creates an instance of this class with the value of the maximum allowed size of a message in bytes, and marks it as non-transient.

MessageTooLargeException(String)

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

MessageTooLargeException(ErrorCode, String)

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

MessageTooLargeException(Int32, String)

Creates an instance of this class with the value of the maximum allowed size of a message in bytes and the tracking Id, and marks it as non-transient.

MessageTooLargeException(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.

MessageTooLargeException(Int32)

Creates an instance of this class with the value of the maximum allowed size of a message in bytes, and marks it as non-transient.

public MessageTooLargeException (int maximumMessageSizeInBytes);
new Microsoft.Azure.Devices.Common.Exceptions.MessageTooLargeException : int -> Microsoft.Azure.Devices.Common.Exceptions.MessageTooLargeException
Public Sub New (maximumMessageSizeInBytes As Integer)

Parameters

maximumMessageSizeInBytes
Int32

The maximum allowed size of the message in bytes.

Applies to

MessageTooLargeException(String)

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

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

Parameters

message
String

The message that describes the error.

Applies to

MessageTooLargeException(ErrorCode, String)

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

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

MessageTooLargeException(Int32, String)

Creates an instance of this class with the value of the maximum allowed size of a message in bytes and the tracking Id, and marks it as non-transient.

public MessageTooLargeException (int maximumMessageSizeInBytes, string trackingId);
new Microsoft.Azure.Devices.Common.Exceptions.MessageTooLargeException : int * string -> Microsoft.Azure.Devices.Common.Exceptions.MessageTooLargeException
Public Sub New (maximumMessageSizeInBytes As Integer, trackingId As String)

Parameters

maximumMessageSizeInBytes
Int32

The maximum allowed size of the message in bytes.

trackingId
String

The service returned tracking Id associated with this particular error.

Applies to

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