ScriptErrorclass

A script failure, with a UTF-16 source range suitable for highlighting in an editor.

object→ScriptError
Namespace
global
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.Script.ScriptError

Properties4

Showing 4 properties

public string Sandbox.Script.ScriptError.Code { get; set; }PUBLICGETSET

A stable identifier for the kind of failure.

Returns:string—

public int Sandbox.Script.ScriptError.Length { get; set; }PUBLICGETSET

The length of the affected source range.

Returns:int—

public string Sandbox.Script.ScriptError.Message { get; set; }PUBLICGETSET

A description of the failure.

Returns:string—

public int Sandbox.Script.ScriptError.Start { get; set; }PUBLICGETSET

The first character of the affected source range.

Returns:int—

On this page