gstaichi.lang.exception#

Exceptions#

GsTaichiCompilationError

Base class for all compilation exceptions.

GsTaichiSyntaxError

Thrown when a syntax error is found during compilation.

GsTaichiNameError

Thrown when an undefine name is found during compilation.

GsTaichiTypeError

Thrown when a type mismatch is found during compilation.

GsTaichiRuntimeError

Thrown when the compiled program cannot be executed due to unspecified reasons.

GsTaichiAssertionError

Thrown when assertion fails at runtime.

GsTaichiRuntimeTypeError

Thrown when the compiled program cannot be executed due to unspecified reasons.

Module Contents#

exception gstaichi.lang.exception.GsTaichiCompilationError[source]#

Bases: Exception

Base class for all compilation exceptions.

exception gstaichi.lang.exception.GsTaichiSyntaxError[source]#

Bases: GsTaichiCompilationError, SyntaxError

Thrown when a syntax error is found during compilation.

exception gstaichi.lang.exception.GsTaichiNameError[source]#

Bases: GsTaichiCompilationError, NameError

Thrown when an undefine name is found during compilation.

exception gstaichi.lang.exception.GsTaichiTypeError[source]#

Bases: GsTaichiCompilationError, TypeError

Thrown when a type mismatch is found during compilation.

exception gstaichi.lang.exception.GsTaichiRuntimeError[source]#

Bases: RuntimeError

Thrown when the compiled program cannot be executed due to unspecified reasons.

exception gstaichi.lang.exception.GsTaichiAssertionError[source]#

Bases: GsTaichiRuntimeError, AssertionError

Thrown when assertion fails at runtime.

exception gstaichi.lang.exception.GsTaichiRuntimeTypeError[source]#

Bases: GsTaichiRuntimeError, TypeError

Thrown when the compiled program cannot be executed due to unspecified reasons.

static get(pos, needed, provided)[source]#
static get_ret(needed, provided)[source]#