cognee/cognee/tasks/completion/exceptions/exceptions.py
Boris 675b66175f
test: make search unit tests deterministic (#726)
<!-- .github/pull_request_template.md -->

## Description
<!-- Provide a clear description of the changes in this PR -->

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.

---------

Co-authored-by: Daniel Molnar <soobrosa@gmail.com>
2025-04-18 21:55:24 +02:00

12 lines
355 B
Python

from cognee.exceptions import CogneeApiError
from fastapi import status
class NoRelevantDataError(CogneeApiError):
def __init__(
self,
message: str = "Search did not find any data.",
name: str = "NoRelevantDataError",
status_code=status.HTTP_404_NOT_FOUND,
):
super().__init__(message, name, status_code)