finesse.script.exceptions.KatScriptError

Overview

class finesse.script.exceptions.KatScriptError(error, container, error_items)[source]

Bases: finesse.script.exceptions.KatParsingError

Detailed kat script error.

Parameters

error : str or Exception

The error or error message.

container : KatAddressable

The kat script container, used to show lines before/after error lines if requested.

error_items : sequence of sequences of ScriptLocation

The error(s) to show. Each item of the topmost sequence should itself be an ordered sequence of ScriptLocation objects 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

KatScriptError.error_lines

Methods

KatScriptError.__init__(error, container, ...)

KatScriptError.chunkify()

Convert the error script into a dict of line numbers to (str, is_error) sequences.

KatScriptError.items_to_linemarkers(items)

KatScriptError.message()

KatScriptError.rubric()