cslug.exceptions

All custom exception and warning classes are defined and accessible here.

exception cslug.exceptions.BuildBlockedError[source]

Bases: Exception

The CC environment variable is set to !block. (For testing.)

exception cslug.exceptions.BuildError[source]

Bases: Exception

Compiler raised an error during a compile.

exception cslug.exceptions.BuildWarning[source]

Bases: Warning

Compiler issued a build warning.

exception cslug.exceptions.CCNotFoundError[source]

Bases: Exception

The CC environment variable is set but could not be found.

exception cslug.exceptions.LibraryOpenElsewhereError[source]

Bases: BuildError

Writing to a DLL raised a misleading permission error.

exception cslug.exceptions.NoGccError[source]

Bases: Exception

gcc is not in PATH and the CC environment variable is unset.

exception cslug.exceptions.PrintfWarning[source]

Bases: Warning

C source code contains I/O functions which write to true stdout. These are not generally redirectable and will therefore be invisible if run from an IDE rather than a terminal.

exception cslug.exceptions.TypeParseWarning[source]

Bases: Warning

An argument or return type was not recognised.