File​Format​Exception Class

Definition

The exception that is thrown when an input file or a data stream that is supposed to conform to a certain file format specification is malformed.

public class FileFormatException : FormatException
Inheritance

Inherited Members

System.Exception

System.Object

Constructors

File​Format​Exception()

Creates a new instance of the FileFormatException class.

File​Format​Exception(​String)

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

File​Format​Exception(​Uri)

Creates a new instance of the FileFormatException class with a source URI value.

File​Format​Exception(​Serialization​Info, ​Streaming​Context)

Creates a new instance of the FileFormatException class and initializes it with serialized data. This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

File​Format​Exception(​String, ​Exception)

Creates a new instance of the FileFormatException class with a specified error message and exception type.

File​Format​Exception(​Uri, ​Exception)

Creates a new instance of the FileFormatException class with a source URI value and an exception type.

File​Format​Exception(​Uri, ​String)

Creates a new instance of the FileFormatException class with a source URI value and a specified error message.

File​Format​Exception(​Uri, ​String, ​Exception)

Creates a new instance of the FileFormatException class with a source URI value, a specified error message, and an exception type.

Properties

Source​Uri

Gets the name of a file that caused the FileFormatException.

Methods

Get​Object​Data(​Serialization​Info, ​Streaming​Context)

Sets the SerializationInfo object with the file name and additional exception information.