UriTemplateMatchException Constructors

Definition

Initializes a new instance of the UriTemplateMatchException class.

Overloads

UriTemplateMatchException()

Initializes a new instance of the UriTemplateMatchException class.

UriTemplateMatchException(String)

Initializes a new instance of the UriTemplateMatchException class with the specified error message.

UriTemplateMatchException(SerializationInfo, StreamingContext)

Initializes a new instance of the UriTemplateMatchException class with serialized data.

UriTemplateMatchException(String, Exception)

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

UriTemplateMatchException()

Initializes a new instance of the UriTemplateMatchException class.

C#
public UriTemplateMatchException();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

UriTemplateMatchException(String)

Initializes a new instance of the UriTemplateMatchException class with the specified error message.

C#
public UriTemplateMatchException(string message);

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

UriTemplateMatchException(SerializationInfo, StreamingContext)

Initializes a new instance of the UriTemplateMatchException class with serialized data.

C#
protected UriTemplateMatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

The object that holds the serialized data object.

context
StreamingContext

The contextual information about the source or destination.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

UriTemplateMatchException(String, Exception)

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

C#
public UriTemplateMatchException(string message, Exception innerException);

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1