def METHOD_NAME(self, message, field=None):
    """
    Raise a ValidationError exception. Associate the provided message with a form/serializer field if specified.
    """
    if field is not None:
        raise ValidationError({field: message})
    raise ValidationError(message)