class ValidationError(Exception):

    def __init__(self, message, errors):
        super(ValidationError, self).__init__(message)
self.errors = errors
Proper way to declare custom exceptions in modern Python?