TX Text Control .NET Server

ErrorArgument Object

Object

Description

Encapsulates information about an error. By default any unhandled error is thrown at the highest level. For signaling that an error has been handled, set the 'handled' parameter to true, which stops the propagation of the error to a higher level.

Syntax

{
   msg: <String>,
   handled: <boolean>
}

Examples

The following example demonstrates ErrorArgument in a practical document-editing workflow. Encapsulates information about an error. By default any unhandled error is thrown at the highest level. For signaling that an error has been handled, set the 'handled' parameter to true, which stops the propagation of the error to a higher level.

function inspectErrorArgument(errorArgument) {
    console.log("msg:", errorArgument.msg);
    console.log("handled:", errorArgument.handled);
}

Members

Properties

PropertyDescription
handledSpecifies whether the error has been handled. Set this to true to suppress propagation of the error to a higher level.
msgThe error message.