mscorlib(4.0.0.0) API with additions
System.UriFormatException Class Reference

The exception that is thrown when an invalid Uniform Resource Identifier (URI) is detected. More...

Inheritance diagram for System.UriFormatException:
[legend]
Collaboration diagram for System.UriFormatException:
[legend]

Public Member Functions

 UriFormatException ()
 Initializes a new instance of the T:System.UriFormatException class. More...
 
 UriFormatException (string textString)
 Initializes a new instance of the T:System.UriFormatException class with the specified message. More...
 
 UriFormatException (string textString, Exception e)
 Initializes a new instance of the T:System.UriFormatException class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
- Public Member Functions inherited from System.FormatException
 FormatException ()
 Initializes a new instance of the T:System.FormatException class. More...
 
 FormatException (string message)
 Initializes a new instance of the T:System.FormatException class with a specified error message. More...
 
 FormatException (string message, Exception innerException)
 Initializes a new instance of the T:System.FormatException class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
- Public Member Functions inherited from System.SystemException
 SystemException ()
 Initializes a new instance of the T:System.SystemException class. More...
 
 SystemException (string message)
 Initializes a new instance of the T:System.SystemException class with a specified error message. More...
 
 SystemException (string message, Exception innerException)
 Initializes a new instance of the T:System.SystemException class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
- Public Member Functions inherited from System.Exception
 Exception ()
 Initializes a new instance of the T:System.Exception class. More...
 
 Exception (string message)
 Initializes a new instance of the T:System.Exception class with a specified error message. More...
 
 Exception (string message, Exception innerException)
 Initializes a new instance of the T:System.Exception class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
virtual Exception GetBaseException ()
 When overridden in a derived class, returns the T:System.Exception that is the root cause of one or more subsequent exceptions. More...
 
override string ToString ()
 Creates and returns a string representation of the current exception. More...
 
new Type GetType ()
 Gets the runtime type of the current instance. More...
 
- Public Member Functions inherited from System.Runtime.InteropServices._Exception
new bool Equals (object obj)
 Provides COM objects with version-independent access to the M:System.Object.Equals(System.Object) method. More...
 
new int GetHashCode ()
 Provides COM objects with version-independent access to the M:System.Object.GetHashCode method. More...
 

Protected Member Functions

 UriFormatException (SerializationInfo serializationInfo, StreamingContext streamingContext)
 Initializes a new instance of the T:System.UriFormatException class from the specified T:System.Runtime.Serialization.SerializationInfo and T:System.Runtime.Serialization.StreamingContext instances. More...
 
- Protected Member Functions inherited from System.FormatException
 FormatException (SerializationInfo info, StreamingContext context)
 Initializes a new instance of the T:System.FormatException class with serialized data. More...
 
- Protected Member Functions inherited from System.SystemException
 SystemException (SerializationInfo info, StreamingContext context)
 Initializes a new instance of the T:System.SystemException class with serialized data. More...
 
- Protected Member Functions inherited from System.Exception
 Exception (SerializationInfo info, StreamingContext context)
 Initializes a new instance of the T:System.Exception class with serialized data. More...
 

Additional Inherited Members

- Properties inherited from System.Exception
virtual string Message [get]
 Gets a message that describes the current exception. More...
 
virtual IDictionary Data [get]
 Gets a collection of key/value pairs that provide additional user-defined information about the exception. More...
 
Exception InnerException [get]
 Gets the T:System.Exception instance that caused the current exception. More...
 
MethodBase TargetSite [get]
 Gets the method that throws the current exception. More...
 
virtual string StackTrace [get]
 Gets a string representation of the immediate frames on the call stack. More...
 
virtual string HelpLink [get, set]
 Gets or sets a link to the help file associated with this exception. More...
 
virtual string Source [get, set]
 Gets or sets the name of the application or the object that causes the error. More...
 
int HResult [get, protected set]
 Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. More...
 
EventHandler< SafeSerializationEventArgsSerializeObjectState
 Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. More...
 
- Properties inherited from System.Runtime.InteropServices._Exception
string Message [get]
 Provides COM objects with version-independent access to the P:System.Exception.Message property. More...
 
string StackTrace [get]
 Provides COM objects with version-independent access to the P:System.Exception.StackTrace property. More...
 
string HelpLink [get, set]
 Provides COM objects with version-independent access to the P:System.Exception.HelpLink property. More...
 
string Source [get, set]
 Provides COM objects with version-independent access to the P:System.Exception.Source property. More...
 
Exception InnerException [get]
 Provides COM objects with version-independent access to the P:System.Exception.InnerException property. More...
 
MethodBase TargetSite [get]
 Provides COM objects with version-independent access to the P:System.Exception.TargetSite property. More...
 

Detailed Description

The exception that is thrown when an invalid Uniform Resource Identifier (URI) is detected.

Definition at line 8 of file UriFormatException.cs.

Constructor & Destructor Documentation

◆ UriFormatException() [1/4]

System.UriFormatException.UriFormatException ( )

Initializes a new instance of the T:System.UriFormatException class.

Definition at line 12 of file UriFormatException.cs.

◆ UriFormatException() [2/4]

System.UriFormatException.UriFormatException ( string  textString)

Initializes a new instance of the T:System.UriFormatException class with the specified message.

Parameters
textStringThe error message string.

Definition at line 19 of file UriFormatException.cs.

◆ UriFormatException() [3/4]

System.UriFormatException.UriFormatException ( string  textString,
Exception  e 
)

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

Parameters
textStringThe message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
eThe exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Definition at line 28 of file UriFormatException.cs.

◆ UriFormatException() [4/4]

System.UriFormatException.UriFormatException ( SerializationInfo  serializationInfo,
StreamingContext  streamingContext 
)
protected

Initializes a new instance of the T:System.UriFormatException class from the specified T:System.Runtime.Serialization.SerializationInfo and T:System.Runtime.Serialization.StreamingContext instances.

Parameters
serializationInfoA T:System.Runtime.Serialization.SerializationInfo that contains the information that is required to serialize the new T:System.UriFormatException.
streamingContextA T:System.Runtime.Serialization.StreamingContext that contains the source of the serialized stream that is associated with the new T:System.UriFormatException.

Definition at line 36 of file UriFormatException.cs.


The documentation for this class was generated from the following file: