<!-- .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>
12 lines
340 B
Python
12 lines
340 B
Python
from fastapi import status
|
|
from cognee.exceptions import CriticalError
|
|
|
|
|
|
class CollectionNotFoundError(CriticalError):
|
|
def __init__(
|
|
self,
|
|
message,
|
|
name: str = "DatabaseNotCreatedError",
|
|
status_code: int = status.HTTP_422_UNPROCESSABLE_ENTITY,
|
|
):
|
|
super().__init__(message, name, status_code)
|