exception documentation

class ValidationError(Exception): (source)

View In Hierarchy

An error while validating data.

Method __eq__ Undocumented
Method __hash__ Undocumented
Method __init__ 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.
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): (source)

Undocumented

def __hash__(self): (source)

Undocumented

def __init__(self, message, code=None, params=None): (source)

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): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __str__(self): (source)

Undocumented

def update_error_dict(self, error_dict): (source)

Undocumented

error_dict: dict = (source)

Undocumented

@property
message_dict = (source)

Undocumented

Undocumented