UnexpectedTokenException Class
- Namespace
TXTextControl.DocumentServer. Json
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXDocumentServer.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXDocumentServer.from the setup.dll
- Inherits
- Exception
- Parser
Exception - Unexpected
Token Exception
Description
Is thrown when calling the method MailMerge.MergeJsonData with a JSON string containing an unexpected character.
Syntax
public class UnexpectedTokenException : ParserExceptionPublic Class UnexpectedTokenException
Inherits ParserExceptionExamples
The following example creates an Unexpected Token Exception instance and configures its help link setting for a document workflow.
TXTextControl.DocumentServer.Json.UnexpectedTokenException unexpectedTokenException = new(10, 'A');
unexpectedTokenException.HelpLink = "Quarterly report";Dim unexpectedTokenException As New TXTextControl.DocumentServer.Json.UnexpectedTokenException(10, "A"c)
unexpectedTokenException.HelpLink = "Quarterly report"Members
Constructors
| Constructor | Description |
|---|---|
| UnexpectedTokenException | Not described in the reference. public UnexpectedTokenException(int pos, char token); |