deepgram.clients.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 DeepgramModuleError(Exception):
 7    """
 8    Base class for exceptions raised for a missing Deepgram module.
 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 = "DeepgramModuleError"
class DeepgramModuleError(builtins.Exception):
 7class DeepgramModuleError(Exception):
 8    """
 9    Base class for exceptions raised for a missing Deepgram module.
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 = "DeepgramModuleError"

Base class for exceptions raised for a missing Deepgram module.

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

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