finesse.script.compiler.KatIncorrectFormError

Overview

class finesse.script.compiler.KatIncorrectFormError(user_directive_token, script, spec)[source]

Bases: KatSyntaxError

Error representing an element, command or analysis that uses the wrong syntax form.

For example, this is thrown when a command is written in “element” KatScript form, and vice versa.

This is technically a syntax error, but it is not caught there because it doesn’t know which directives use which type of syntax.