Indicates that the operation was rejected because the system is not in a state required for
the operation’s execution. For example, a directory to be deleted may be non-empty, an “rmdir”
operation is applied to a non-directory, etc.
Indicates an internal error has occurred and some invariants expected by the underlying system
have not been satisfied. This error code is reserved for serious errors.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-08 UTC."],[],[],null,["# MediaPipeTasksVision Framework Reference\n\nTasksErrorCode\n==============\n\n enum TasksErrorCode : UInt, @unchecked Sendable\n\n@enum MPPTasksErrorCode\nThis enum specifies error codes for errors thrown by iOS MediaPipe Task Library.\n- `\n ``\n ``\n `\n\n ### [cancelledError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeCancelledError)\n\n `\n ` \n Indicates the operation was cancelled, typically by the caller. \n\n #### Declaration\n\n Swift \n\n case cancelledError = 1\n\n- `\n ``\n ``\n `\n\n ### [unknownError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeUnknownError)\n\n `\n ` \n Indicates an unknown error occurred. \n\n #### Declaration\n\n Swift \n\n case unknownError = 2\n\n- `\n ``\n ``\n `\n\n ### [invalidArgumentError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeInvalidArgumentError)\n\n `\n ` \n Indicates the caller specified an invalid argument, such as a malformed filename. \n\n #### Declaration\n\n Swift \n\n case invalidArgumentError = 3\n\n- `\n ``\n ``\n `\n\n ### [deadlineExceededError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeDeadlineExceededError)\n\n `\n ` \n Indicates a deadline expired before the operation could complete. \n\n #### Declaration\n\n Swift \n\n case deadlineExceededError = 4\n\n- `\n ``\n ``\n `\n\n ### [notFoundError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeNotFoundError)\n\n `\n ` \n Indicates some requested entity (such as a file or directory) was not found. \n\n #### Declaration\n\n Swift \n\n case notFoundError = 5\n\n- `\n ``\n ``\n `\n\n ### [alreadyExistsError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeAlreadyExistsError)\n\n `\n ` \n Indicates that the entity a caller attempted to create (such as a file or directory) is\n already present. \n\n #### Declaration\n\n Swift \n\n case alreadyExistsError = 6\n\n- `\n ``\n ``\n `\n\n ### [permissionDeniedError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodePermissionDeniedError)\n\n `\n ` \n Indicates that the caller does not have permission to execute the specified operation. \n\n #### Declaration\n\n Swift \n\n case permissionDeniedError = 7\n\n- `\n ``\n ``\n `\n\n ### [resourceExhaustedError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeResourceExhaustedError)\n\n `\n ` \n Indicates some resource has been exhausted, perhaps a per-user quota, or perhaps the entire\n file system is out of space. \n\n #### Declaration\n\n Swift \n\n case resourceExhaustedError = 8\n\n- `\n ``\n ``\n `\n\n ### [failedPreconditionError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeFailedPreconditionError)\n\n `\n ` \n Indicates that the operation was rejected because the system is not in a state required for\n the operation's execution. For example, a directory to be deleted may be non-empty, an \"rmdir\"\n operation is applied to a non-directory, etc. \n\n #### Declaration\n\n Swift \n\n case failedPreconditionError = 9\n\n- `\n ``\n ``\n `\n\n ### [abortedError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeAbortedError)\n\n `\n ` \n Indicates the operation was aborted, typically due to a concurrency issue such as a sequencer\n check failure or a failed transaction. \n\n #### Declaration\n\n Swift \n\n case abortedError = 10\n\n- `\n ``\n ``\n `\n\n ### [outOfRangeError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeOutOfRangeError)\n\n `\n ` \n Indicates the operation was attempted past the valid range, such as seeking or reading past an\n end-of-file. \n\n #### Declaration\n\n Swift \n\n case outOfRangeError = 11\n\n- `\n ``\n ``\n `\n\n ### [unimplementedError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeUnimplementedError)\n\n `\n ` \n Indicates the operation is not implemented or supported in this service. In this case, the\n operation should not be re-attempted. \n\n #### Declaration\n\n Swift \n\n case unimplementedError = 12\n\n- `\n ``\n ``\n `\n\n ### [internalError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeInternalError)\n\n `\n ` \n Indicates an internal error has occurred and some invariants expected by the underlying system\n have not been satisfied. This error code is reserved for serious errors. \n\n #### Declaration\n\n Swift \n\n case internalError = 13\n\n- `\n ``\n ``\n `\n\n ### [unavailableError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeUnavailableError)\n\n `\n ` \n Indicates the service is currently unavailable and that this is most likely a transient\n condition. \n\n #### Declaration\n\n Swift \n\n case unavailableError = 14\n\n- `\n ``\n ``\n `\n\n ### [dataLossError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeDataLossError)\n\n `\n ` \n Indicates that unrecoverable data loss or corruption has occurred. \n\n #### Declaration\n\n Swift \n\n case dataLossError = 15\n\n- `\n ``\n ``\n `\n\n ### [unauthenticatedError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeUnauthenticatedError)\n\n `\n ` \n Indicates that the request does not have valid authentication credentials for the operation. \n\n #### Declaration\n\n Swift \n\n case unauthenticatedError = 16\n\n- `\n ``\n ``\n `\n\n ### [audioRecordPermissionDeniedError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeAudioRecordPermissionDeniedError)\n\n `\n ` \n Indicates that audio record permissions were denied by the user. \n\n #### Declaration\n\n Swift \n\n case audioRecordPermissionDeniedError = 17\n\n- `\n ``\n ``\n `\n\n ### [audioRecordPermissionUndeterminedError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeAudioRecordPermissionUndeterminedError)\n\n `\n ` \n Audio record permissions cannot be determined. If this error is returned by Audio, the caller\n has to acquire permissions using AVFoundation. \n\n #### Declaration\n\n Swift \n\n case audioRecordPermissionUndeterminedError = 18\n\n- `\n ``\n ``\n `\n\n ### [audioRecordWaitingForNewMicInputError](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeAudioRecordWaitingForNewMicInputError)\n\n `\n ` \n Indicates that `AudioRecord` is waiting for new mic input. \n\n #### Declaration\n\n Swift \n\n case audioRecordWaitingForNewMicInputError = 19\n\n- `\n ``\n ``\n `\n\n ### [first](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeFirst)\n\n `\n ` \n The first error code in MPPTasksErrorCode (for internal use only). \n\n #### Declaration\n\n Swift \n\n static var first: TasksErrorCode { get }\n\n- `\n ``\n ``\n `\n\n ### [last](#/c:@E@MPPTasksErrorCode@MPPTasksErrorCodeLast)\n\n `\n ` \n The last error code in MPPTasksErrorCode (for internal use only). \n\n #### Declaration\n\n Swift \n\n static var last: TasksErrorCode { get }"]]