Module frantic.exceptions

Exceptions

Expand source code
"""Exceptions"""


class FranticException(Exception):
    """A base for all Frantic Exceptions"""


class AlreadyExists(FranticException):
    """Raised on document conflict"""

    def __init__(self, document_id: str | None):
        self.document_id = document_id
        super().__init__(f"Document with id {self.document_id} already exists")

Classes

class AlreadyExists (document_id: Optional[str])

Raised on document conflict

Expand source code
class AlreadyExists(FranticException):
    """Raised on document conflict"""

    def __init__(self, document_id: str | None):
        self.document_id = document_id
        super().__init__(f"Document with id {self.document_id} already exists")

Ancestors

class FranticException (*args, **kwargs)

A base for all Frantic Exceptions

Expand source code
class FranticException(Exception):
    """A base for all Frantic Exceptions"""

Ancestors

  • builtins.Exception
  • builtins.BaseException

Subclasses