ModelValidationError

exception ModelValidationError(message, field_name=None, data=None, valid_data=None, **kwargs)[source]

Raised when a sequence subscript is out of range.

Set the error message.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.