deepgram.audio.microphone.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
 6# exceptions for microphone
 7class DeepgramMicrophoneError(Exception):
 8    """
 9    Exception raised for known errors related to Microphone library.
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 = "DeepgramMicrophoneError"
18        self.message = message
19
20    def __str__(self):
21        return f"{self.name}: {self.message}"
class DeepgramMicrophoneError(builtins.Exception):
 8class DeepgramMicrophoneError(Exception):
 9    """
10    Exception raised for known errors related to Microphone library.
11
12    Attributes:
13        message (str): The error message describing the exception.
14    """
15
16    def __init__(self, message: str):
17        super().__init__(message)
18        self.name = "DeepgramMicrophoneError"
19        self.message = message
20
21    def __str__(self):
22        return f"{self.name}: {self.message}"

Exception raised for known errors related to Microphone library.

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

DeepgramMicrophoneError(message: str)
16    def __init__(self, message: str):
17        super().__init__(message)
18        self.name = "DeepgramMicrophoneError"
19        self.message = message
name
message