Skip to content

module internal.types.error

Source: stdlib/internal/types/error.codon


BaseException

Fields

typename: str

message: str

func: str

file: str

line: int

col: int

python_type: cobj

cause: Optional[BaseException]

Properties

__cause__ @property Method is a class property

Magic methods

__init__(self, typename: str, message: str = "")

__str__(self)

__repr__(self)

__cause__(self) @property Method is a class property


Exception

Magic methods

__init__(self, typename: str, msg: str = "")


NameError

Magic methods

__init__(self, message: str = "")


OSError

Magic methods

__init__(self, message: str = "")


IOError

Magic methods

__init__(self, message: str = "")


ValueError

Magic methods

__init__(self, message: str = "")


LookupError

Magic methods

__init__(self, typename: str, message: str = "")

__init__(self, msg: str = "")


IndexError

Magic methods

__init__(self, message: str = "")


KeyError

Magic methods

__init__(self, message: str = "")


CError

Magic methods

__init__(self, message: str = "")


TypeError

Magic methods

__init__(self, message: str = "")


ArithmeticError

Magic methods

__init__(self, msg: str = "")


ZeroDivisionError

Magic methods

__init__(self, typename: str, message: str = "")

__init__(self, message: str = "")


OverflowError

Magic methods

__init__(self, message: str = "")


AttributeError

Magic methods

__init__(self, message: str = "")


RuntimeError

Magic methods

__init__(self, typename: str, message: str = "")

__init__(self, message: str = "")


NotImplementedError

Magic methods

__init__(self, message: str = "")


StopIteration

Magic methods

__init__(self, message: str = "")


AssertionError

Magic methods

__init__(self, message: str = "")


EOFError

Magic methods

__init__(self, message: str = "")


SystemExit

Properties

status @property Method is a class property

Magic methods

__init__(self, message: str = "", status: int = 0)

__init__(self, status: int)


StaticCompileError

Magic methods

__init__(self, message: str = "")