struct HomeErrorextension HomeError : Copyable, CustomNSError, Equatable, Error, Error, Escapable, Hashable, LocalizedError, Sendable, Sendable, SendableMetatype, SendableMetatypeBase type for all errors thrown by the GoogleHomeSDK.
-
Structured error reason provided by the backend (AIP-193 ErrorInfo), categorized by canonical status code.
Canonical status code to reason mappings and string constants are defined in:
//depot/google3/assistant/verticals/homeautomation/server/utils/partner_error_utils.ccDeclaration
-
Undocumented
Declaration
Swift
let code: HomeError.Code -
Undocumented
Declaration
Swift
let message: String -
Undocumented
Declaration
Swift
let subcodes: [Int] -
Undocumented
Declaration
Swift
let subtype: HomeError.Subtype? -
Undocumented
Declaration
Swift
let reason: HomeError.Reason? -
Undocumented
Declaration
Swift
let domain: String? -
Free-form diagnostic string supplied by the partner’s cloud, if the backend provided one.
This is intended for logging and bug reports only. Never branch on its contents; use
reasonfor programmatic handling.Declaration
Swift
let partnerDebugString: String? -
A detailed description of the error.
Declaration
Swift
var errorDescription: String? { get } -
Error codes thrown by the GoogleHomeSDK.
Consistent with gRPC status codes: https://grpc.io/docs/guides/status-codes/
Declaration
Swift
enum Codeextension HomeError.Code : Equatable, Hashable, RawRepresentable, Sendable, SendableMetatype -
Undocumented
Declaration
-
The domain of the error.
Declaration
Swift
static let errorDomain: String -
Undocumented
Declaration
Swift
static let errorInfoReasonKey: String -
Undocumented
Declaration
Swift
static let errorInfoDomainKey: String -
Undocumented
Declaration
Swift
static let errorInfoPartnerDebugStringKey: String -
The error code within the given domain.
Declaration
Swift
var errorCode: Int { get } -
The user-info dictionary.
Declaration
Swift
var errorUserInfo: [String : Any] { get } -
Undocumented
Declaration
Swift
static func cancelled(_ message: String = "", reason: CancelledReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func unknown(_ message: String = "", reason: UnknownReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func invalidArgument(_ message: String = "", reason: InvalidArgumentReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func deadlineExceeded(_ message: String = "", reason: DeadlineExceededReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func notFound(_ message: String = "", reason: NotFoundReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func alreadyExists(_ message: String = "", reason: HomeError.Reason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func permissionDenied(_ message: String = "", reason: PermissionDeniedReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func resourceExhausted(_ message: String = "", reason: ResourceExhaustedReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func failedPrecondition(_ message: String = "", reason: FailedPreconditionReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func aborted(_ message: String = "", reason: HomeError.Reason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func outOfRange(_ message: String = "", reason: HomeError.Reason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func unimplemented(_ message: String = "", reason: UnimplementedReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func `internal`(_ message: String = "", reason: InternalReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func unavailable(_ message: String = "", reason: UnavailableReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func dataLoss(_ message: String = "", reason: HomeError.Reason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func unauthenticated(_ message: String = "", reason: UnauthenticatedReason? = nil) -> HomeError -
Undocumented
Declaration
Swift
static func galError(_ message: String = "") -> HomeError -
Undocumented
Declaration
Swift
static func commandFailed(_ message: String = "", reason: HomeError.Reason? = nil) -> HomeError