deepgram.errors

 1# Copyright 2023-2024 Deepgram SDK contributors. All Rights Reserved.
 2# Use of this source code is governed by a MIT license that can be found in the LICENSE file.
 3# SPDX-License-Identifier: MIT
 4
 5
 6class DeepgramApiKeyError(Exception):
 7    """
 8    Base class for exceptions raised for a missing Deepgram API Key.
 9
10    Attributes:
11        message (str): The error message describing the exception.
12    """
13
14    def __init__(self, message: str):
15        super().__init__(message)
16        self.name = "DeepgramApiKeyError"
class DeepgramApiKeyError(builtins.Exception):
 7class DeepgramApiKeyError(Exception):
 8    """
 9    Base class for exceptions raised for a missing Deepgram API Key.
10
11    Attributes:
12        message (str): The error message describing the exception.
13    """
14
15    def __init__(self, message: str):
16        super().__init__(message)
17        self.name = "DeepgramApiKeyError"

Base class for exceptions raised for a missing Deepgram API Key.

Attributes: message (str): The error message describing the exception.

DeepgramApiKeyError(message: str)
15    def __init__(self, message: str):
16        super().__init__(message)
17        self.name = "DeepgramApiKeyError"
name