"""Exceptions.""" class ValidationError(Exception): """ValidationError.""" def __init__(self, errors=None): """Initialize the custom exception class. Args: errors: This can be whatever you want. """ # Call the base class constructor with the parameters it needs super().__init__('validation_error') self.errors = errors