ODF .NET Class Library
Show/Hide TOC

# FileFormatException(String, Exception) Constructor

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

## Definition

Namespace: Independentsoft.Office
Assembly: Independentsoft.Office.Odf (in Independentsoft.Office.Odf.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public FileFormatException(
    	string message,
    	Exception innerException
    )

VB

    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. If the innerException parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.

## See Also

#### Reference

FileFormatException Class
FileFormatException Overload
Independentsoft.Office Namespace