TX Text Control .NET Server

FilterException Constructor

Constructor|Introduced in 24.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Initializes a new instance of the FilterException class.

Syntax

FilterException(FilterException.FilterError)

Initializes a new instance of the FilterException class with a specified error.

public FilterException(FilterException.FilterError error);
ParameterDescription
error

The error that is the cause of the current exception.

FilterException(FilterException.FilterError, string)

Initializes a new instance of the FilterException class with a specified error and a specified error message.

public FilterException(FilterException.FilterError error, string message);
ParameterDescription
error

The error that is the cause of the current exception.

message

The error message that explains the reason for the exception.

Examples

The following example creates a Filter Exception instance and configures its help link setting for a document workflow.

FilterException filterException = new(FilterException.FilterError.WrongFileType);
filterException.HelpLink = "Quarterly report";

Further Reading

  • Store Documents as PDF/A using C# - A Future-Proof Archiving Format –