New to Telerik Document ProcessingStart a free 30-day trial

Thrown when a document violates DOCX format validation rules during export; contains detailed validation errors.

Definition

Constructors

Initializes a new instance of the InvalidDocumentException class.

C#
public InvalidDocumentException()

Initializes a new instance of the InvalidDocumentException class.

C#
public InvalidDocumentException(IEnumerable<ValidationError> validationErrors)
Parameters:validationErrorsIEnumerable<ValidationError>

The validation errors.

Initializes a new instance of the InvalidDocumentException class.

C#
protected InvalidDocumentException(SerializationInfo info, StreamingContext context)
Parameters:infoSerializationInfo

The info.

contextStreamingContext

The context.

Initializes a new instance of the InvalidDocumentException class.

C#
public InvalidDocumentException(string message, Exception innerException)
Parameters:messagestring

The message.

innerExceptionException

The inner exception.

Initializes a new instance of the InvalidDocumentException class.

C#
public InvalidDocumentException(string message)
Parameters:messagestring

The message.

Properties

Gets the collection of validation errors that describe which document structures are non-compliant.

C#
public IEnumerable<ValidationError> ValidationErrors { get; }
Property Value:

The validation errors.

Methods

Provides COM objects with version-independent access to the GetObjectData(SerializationInfo, StreamingContext) method.

C#
[SecurityCritical]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters:infoSerializationInfo

The SerializationInfo object that holds the serialized object data about the exception being thrown.

contextStreamingContext

The StreamingContext structure that contains contextual information about the source or destination.

Overrides: Exception.GetObjectData(SerializationInfo, StreamingContext)