Share via


RelayException Constructors

Definition

Overloads

RelayException()

Creates a new instance of the RelayException class.

RelayException(String)

Creates a new instance of the RelayException class with a specified error message.

RelayException(SerializationInfo, StreamingContext)

Creates a new instance of the RelayException class with serialized data.

RelayException(String, Exception)

Creates a new instance of the RelayException class with a specified error message and a reference to the inner exception that is the cause of this exception.

RelayException()

Creates a new instance of the RelayException class.

public RelayException ();
Public Sub New ()

Applies to

RelayException(String)

Creates a new instance of the RelayException class with a specified error message.

public RelayException (string message);
new Microsoft.Azure.Relay.RelayException : string -> Microsoft.Azure.Relay.RelayException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

RelayException(SerializationInfo, StreamingContext)

Creates a new instance of the RelayException class with serialized data.

protected RelayException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Relay.RelayException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Relay.RelayException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

RelayException(String, Exception)

Creates a new instance of the RelayException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public RelayException (string message, Exception innerException);
new Microsoft.Azure.Relay.RelayException : string * Exception -> Microsoft.Azure.Relay.RelayException
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