langtest.errors.ErrorsWithCodes#

class ErrorsWithCodes#

Bases: type

Metaclass that allows associating error/warning codes with messages.

This metaclass is used to create error and warning classes that provide error codes for easier identification and retrieval of error/warning messages.

Parameters:

type (type) – The metaclass to inherit from.

__getattribute__(self, code)#

Retrieve the error/warning message associated with a given code.

Usage:

This metaclass is used to create error and warning classes, such as Errors and Warnings.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

mro()

Return a type's method resolution order.

mro()#

Return a type’s method resolution order.