finesse.script.exceptions.KatScriptError¶
Overview
- class finesse.script.exceptions.KatScriptError(error, container, error_items)[source]¶
Bases:
finesse.script.exceptions.KatParsingErrorDetailed kat script error.
- Parameters
error : str or
ExceptionThe error or error message.
container :
KatAddressableThe kat script container, used to show lines before/after error lines if requested.
error_items : sequence of sequences of
ScriptLocationThe error(s) to show. Each item of the topmost sequence should itself be an ordered sequence of
ScriptLocationobjects in increasing order of depth. The last item is considered to be where the error occurred, but the start and end lines (plus optional buffer) of each of the other items are also shown.
Properties
Methods
|
|
Convert the error script into a dict of line numbers to (str, is_error) sequences. |
|