System.UriFormatException Class

public class UriFormatException : FormatException

Base Types

Object
  Exception
    SystemException
      FormatException
        UriFormatException

Assembly

System

Library

Networking

Summary

Represents the error that occurs when a Uniform Resource Identifier (URI) is not correctly formatted.

Description

[Note: The format for a valid URI is defined in IETF RFC 2396. ]

See Also

System Namespace

Members

UriFormatException Constructors

UriFormatException() Constructor
UriFormatException(System.String) Constructor


UriFormatException() Constructor

public UriFormatException();

Summary

Constructs and initializes a new instance of the UriFormatException class.

Description

This constructor initializes the System.UriFormatException.Message property of the new instance to a system-supplied message that describes the error, such as "The specified URI is incorrectly formatted." This message takes into account the current system culture.

The System.UriFormatException.InnerException property of the new instance is initialized to null .

See Also

System.UriFormatException Class, System Namespace

UriFormatException(System.String) Constructor

public UriFormatException(string textString);

Summary

Constructs and initializes a new instance of the UriFormatException class with the specified message.

Parameters

textString
A String that describes the error. The content of textString is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Description

This constructor initializes the System.UriFormatException.Message property of the new instance using textString. If textString is null , the System.UriFormatException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.

The System.UriFormatException.InnerException property is initialized to null .

See Also

System.UriFormatException Class, System Namespace