deepgram.clients.prerecorded.v1.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 DeepgramError(Exception): 7 """ 8 Exception raised for unknown errors related to the Deepgram API. 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 = "DeepgramError" 17 self.message = message 18 19 def __str__(self): 20 return f"{self.name}: {self.message}" 21 22 23class DeepgramTypeError(Exception): 24 """ 25 Exception raised for unknown errors related to unknown Types for Transcription. 26 27 Attributes: 28 message (str): The error message describing the exception. 29 """ 30 31 def __init__(self, message: str): 32 super().__init__(message) 33 self.name = "DeepgramTypeError" 34 self.message = message 35 36 def __str__(self): 37 return f"{self.name}: {self.message}"
class
DeepgramError(builtins.Exception):
7class DeepgramError(Exception): 8 """ 9 Exception raised for unknown errors related to the Deepgram API. 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 = "DeepgramError" 18 self.message = message 19 20 def __str__(self): 21 return f"{self.name}: {self.message}"
Exception raised for unknown errors related to the Deepgram API.
Attributes: message (str): The error message describing the exception.
class
DeepgramTypeError(builtins.Exception):
24class DeepgramTypeError(Exception): 25 """ 26 Exception raised for unknown errors related to unknown Types for Transcription. 27 28 Attributes: 29 message (str): The error message describing the exception. 30 """ 31 32 def __init__(self, message: str): 33 super().__init__(message) 34 self.name = "DeepgramTypeError" 35 self.message = message 36 37 def __str__(self): 38 return f"{self.name}: {self.message}"
Exception raised for unknown errors related to unknown Types for Transcription.
Attributes: message (str): The error message describing the exception.