Skip to content

MissingAPIKeyError

Base classes

Name Children Inherits
Exception
builtins
Common base class for all non-exit exceptions.

⋔ Inheritance diagram

graph TD
  2461798134["exceptions.MissingAPIKeyError"]
  1615621424["builtins.Exception"]
  3224121899["builtins.BaseException"]
  2751680898["builtins.object"]
  1615621424 --> 2461798134
  3224121899 --> 1615621424
  2751680898 --> 3224121899

🛈 DocStrings

Bases: Exception

Source code in src/searchly/exceptions.py
class MissingAPIKeyError(Exception):
    def __init__(self) -> None:
        super().__init__(
            "No API key provided."
            " Please provide the api_key attribute or set the TAVILY_API_KEY env var."
        )

:fa-brands-github: Show source on GitHub