ServiceError
struct ServiceError : Equatable, @unchecked Sendable
-
Declaration
Swift
public static func == (lhs: PredictionsError.ServiceError, rhs: PredictionsError.ServiceError) -> Bool -
Declaration
Swift
public let description: ErrorDescription -
Declaration
Swift
public let recoverySuggestion: RecoverySuggestion -
Declaration
Swift
public let httpStatusCode: Int? -
Declaration
Swift
public let underlyingError: Error? -
Declaration
Swift
public init( description: ErrorDescription, recoverySuggestion: RecoverySuggestion, httpStatusCode: Int? = nil, underlyingError: Error? = nil ) -
Declaration
Swift
static let translationFailed: PredictionsError.ServiceError -
Declaration
Swift
static let internalServerError: PredictionsError.ServiceError -
Declaration
Swift
static let detectedLanguageLowConfidence: PredictionsError.ServiceError -
Declaration
Swift
static let invalidRequest: PredictionsError.ServiceError -
Declaration
Swift
static let resourceNotFound: PredictionsError.ServiceError -
Declaration
Swift
static let textSizeLimitExceeded: PredictionsError.ServiceError -
Declaration
Swift
static let unsupportedLanguagePair: PredictionsError.ServiceError -
Declaration
Swift
static let throttling: PredictionsError.ServiceError -
Declaration
Swift
static let unsupportedLanguage: PredictionsError.ServiceError -
Declaration
Swift
static let invalidSampleRate: PredictionsError.ServiceError -
Declaration
Swift
static let accessDenied: PredictionsError.ServiceError
View on GitHub