class documentation

class ValidationError(Exception):

View In Hierarchy

An error while validating data.
Method __eq__ Undocumented
Method __hash__ Undocumented
Method __init__ No summary
Method __iter__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method update​_error​_dict Undocumented
Instance Variable error​_dict Undocumented
Property message​_dict Undocumented
Property messages Undocumented
def __eq__(self, other):

Undocumented

def __hash__(self):

Undocumented

def __init__(self, message, code=None, params=None):
The message argument can be a single error, a list of errors, or a dictionary that maps field names to lists of errors. What we define as an "error" can be either a simple string or an instance of ValidationError with its message attribute set, and what we define as list or dictionary can be an actual list or dict or an instance of ValidationError with its error_list or error_dict attribute set.
def __iter__(self):

Undocumented

def __repr__(self):

Undocumented

def __str__(self):

Undocumented

def update_error_dict(self, error_dict):

Undocumented

error_dict: dict =

Undocumented

@property
message_dict =

Undocumented

@property
messages =

Undocumented