def METHOD_NAME(*, db_session, project_id: int) -> CasePriority:
    """Returns the default case priority or raises a ValidationError if one doesn't exist."""
    case_priority = get_default(db_session=db_session, project_id=project_id)
    if not case_priority:
        raise ValidationError(
            [
                ErrorWrapper(
                    NotFoundError(msg="No default case priority defined."),
                    loc="case_priority",
                )
            ],
            model=CasePriorityRead,
        )
    return case_priority