Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5d

Application v 5.25a

  

 

Chapter TwoLanguage Overview (continued)

TranslateScriptErrorCode Function

Overview

The TranslateScriptErrorCode function translates a script error code to a string with a type code.

Syntax/Parameters

Syntax

string = TranslateScriptErrorCode ( int code );

Parameters

code

An int specifying error code returned by a script engine or a numeric code for an error. If formatted error code is passed in, addition error bits are masked off.

Return Value

Returns a string containing a descriptive string or and empty string on failure.

Remarks

The returned string is in the form:

C|description

Where C is either W or E for warning or error, respectively and description is the error description. For example:

E|Number of dimensions for parameter must match. 

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic