# Sandbox.Script.ScriptError

A script failure, with a UTF-16 source range suitable for highlighting in an editor.

- Kind: class
- Assembly: `Sandbox.Engine`
- Modifiers: sealed

## Properties

- [`Code`](/api/Sandbox.Script.ScriptError/Code): A stable identifier for the kind of failure.
- [`Length`](/api/Sandbox.Script.ScriptError/Length): The length of the affected source range.
- [`Message`](/api/Sandbox.Script.ScriptError/Message): A description of the failure.
- [`Start`](/api/Sandbox.Script.ScriptError/Start): The first character of the affected source range.
