lscl.errors – Error definitions

exception lscl.errors.Error(message: str, /)

Bases: ValueError

An error has occurred in an lscl function.

Parameters:

message (str)

Return type:

None

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception lscl.errors.DecodeError(message: str | None, /, *, line: int, column: int, offset: int)

Bases: Error

An error has occurred while decoding something.

Parameters:
Return type:

None

add_note()

Exception.add_note(note) – add a note to the exception

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

line: int

Line number, counting from 1.

column: int

Column number, counting from 1.

offset: int

Offset of the string.