deepgram.audio.speaker.errors

 1# Copyright 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 speaker
 7class DeepgramSpeakerError(Exception):
 8    """
 9    Exception raised for known errors related to Speaker 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 = "DeepgramSpeakerError"
18        self.message = message
19
20    def __str__(self):
21        return f"{self.name}: {self.message}"
class DeepgramSpeakerError(builtins.Exception):
 8class DeepgramSpeakerError(Exception):
 9    """
10    Exception raised for known errors related to Speaker 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 = "DeepgramSpeakerError"
19        self.message = message
20
21    def __str__(self):
22        return f"{self.name}: {self.message}"

Exception raised for known errors related to Speaker library.

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

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