l0_internal_error::InternalCompilerError class

Defined in module l0_internal_error (l0_internal_error.py).

Exception raised when an internal compiler invariant is violated.

Internal compiler errors (ICEs) indicate bugs in the compiler itself, rather than mistakes in the user's source code.

Constructors, destructors, conversion operators

__init__(self, str message, ICELocation|None loc = None)
Initialize the internal compiler error.

Public functions

auto format(self) -> str
Format the ICE as a human-readable string.

Public attributes

message
loc

Function documentation

l0_internal_error::InternalCompilerError::__init__(self, str message, ICELocation|None loc = None)

Initialize the internal compiler error.

Parameters
message The error message.
loc Optional source location.

str l0_internal_error::InternalCompilerError::format(self)

Format the ICE as a human-readable string.

Returns A formatted error message including location information.