TX Text Control .NET Server

ParserException Class

Class|Introduced in 24.0
Namespace
TXTextControl.DocumentServer.Json
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll
Inherits
  1. Exception
  2. ParserException
Derived
ExistingPropertyException, InvalidCodePointException, InvalidNumberFormatException, MaxNestingDepthExceededException, UnexpectedEndOfInputException, UnexpectedTokenException, UnknownLiteralNameTokenException, UnknownParseErrorException

Description

Base class of all JSON parser related exceptions which can be thrown when calling method MailMerge.MergeJsonData with an incorrect JSON string.

Syntax

public abstract class ParserException : Exception

Examples

The following example includes the target site value from a Parser Exception object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Target Site: {parserException.TargetSite}");
Console.WriteLine("Parser Exception is ready for use.");

Members

Constructors

ConstructorDescription
ParserExceptionNot described in the reference. public ParserException(string message, int pos);