langtest.errors.Errors#

class Errors#

Bases: object

Class for defining error messages and associating them with codes.

This class allows you to define and associate error messages with unique codes for easier identification and retrieval.

Usage:

Create instances of this class to define custom error messages.

Example

class Errors(metaclass=ErrorsWithCodes):

E000 = (“Each item in the list must be a dictionary”) E001 = (“Each dictionary in the list must have ‘model’ and ‘hub’ keys”) # …

__init__()#

Methods

E000()

E001()

E002()

E003()

E004()

E005()

E006()

E007()

E008()

E009()

E010()

E011()

E012()

E013()

E014()

E015()

E016()

E017()

E018()

E019()

E020()

E021()

E022()

E023()

E024()

E025()

E026()

E027()

E028()

E029()

E030()

E031()

E032()

E033()

E034()

E035()

E036()

E037()

E038()

E039()

E040()

E041()

E042()

E043()

E044()

E045()

E046()

E047()

E048()

E049()

E050()

E051()

E052()

E053()

E054()

E055()

E056()

E057()

E058()

E059()

E060()

E061()

E062()

E063()

E064()

E065()

E066()

E067()

E068()

E069()

E070()

E071()

E072()

E073()

E074()

E075()

E076()

E077()

E078()

E079()

E080()

E081()

E082()

E083()

E084()

E085()

E086()

E087()

E088()

E089()

E090()

E091()

E092()

E093()

E094()

E095()

__init__()