Deepgram.Error (Deepgram v0.1.0)
View SourceError handling for the Deepgram SDK.
This module defines various error types that can be raised by the SDK.
Summary
Functions
Creates an API error from an HTTP response.
Creates an authentication error.
Creates a configuration error.
Creates an HTTP error.
Creates a JSON parsing error.
Creates a timeout error.
Creates a type error.
Creates a WebSocket error.
Functions
@spec api_error(String.t(), integer(), String.t()) :: Deepgram.Error.ApiError.t()
Creates an API error from an HTTP response.
@spec authentication_error(String.t()) :: Deepgram.Error.AuthenticationError.t()
Creates an authentication error.
@spec config_error(String.t(), atom()) :: Deepgram.Error.ConfigError.t()
Creates a configuration error.
@spec http_error(String.t(), any()) :: Deepgram.Error.HttpError.t()
Creates an HTTP error.
@spec json_error(String.t(), any()) :: Deepgram.Error.JsonError.t()
Creates a JSON parsing error.
@spec timeout_error(String.t(), integer()) :: Deepgram.Error.TimeoutError.t()
Creates a timeout error.
@spec type_error(String.t(), String.t(), String.t()) :: Deepgram.Error.TypeError.t()
Creates a type error.
@spec websocket_error(String.t(), any()) :: Deepgram.Error.WebSocketError.t()
Creates a WebSocket error.