TasksErrorCode
enum TasksErrorCode: RawRepresentable, Sendable, Equatable, Hashable, BitwiseCopyableThis enum specifies error codes for errors thrown by iOS MediaPipe Task Library.
-
Indicates the operation was aborted, typically due to a concurrency issue such as a sequencer check failure or a failed transaction.
Declaration
Swift
case abortedError -
Indicates that the entity a caller attempted to create (such as a file or directory) is already present.
Declaration
Swift
case alreadyExistsError -
Indicates that
AudioRecordis not tapping the microphone. Operations permitted only while the microphone is being actively tapped can return this error.Declaration
Swift
case audioRecordNotTappingMicError -
Indicates that audio record permissions were denied by the user.
Declaration
Swift
case audioRecordPermissionDeniedError -
Audio record permissions cannot be determined. If this error is returned by Audio, the caller has to acquire permissions using AVFoundation.
Declaration
Swift
case audioRecordPermissionUndeterminedError -
Indicates that
AudioRecordis waiting for new microphone input.Declaration
Swift
case audioRecordWaitingForNewMicInputError -
Indicates the operation was cancelled, typically by the caller.
Declaration
Swift
case cancelledError -
Indicates that unrecoverable data loss or corruption has occurred.
Declaration
Swift
case dataLossError -
Indicates a deadline expired before the operation could complete.
Declaration
Swift
case deadlineExceededError -
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.
Declaration
Swift
case failedPreconditionError -
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.
Declaration
Swift
case internalError -
Indicates the caller specified an invalid argument, such as a malformed filename.
Declaration
Swift
case invalidArgumentError -
Indicates some requested entity (such as a file or directory) was not found.
Declaration
Swift
case notFoundError -
Indicates the operation was attempted past the valid range, such as seeking or reading past an end-of-file.
Declaration
Swift
case outOfRangeError -
Indicates that the caller does not have permission to execute the specified operation.
Declaration
Swift
case permissionDeniedError -
Indicates some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.
Declaration
Swift
case resourceExhaustedError -
Indicates that the request does not have valid authentication credentials for the operation.
Declaration
Swift
case unauthenticatedError -
Indicates the service is currently unavailable and that this is most likely a transient condition.
Declaration
Swift
case unavailableError -
Indicates the operation is not implemented or supported in this service. In this case, the operation should not be re-attempted.
Declaration
Swift
case unimplementedError -
Indicates an unknown error occurred.
Declaration
Swift
case unknownError -
The first error code in MPPTasksErrorCode (for internal use only).
Declaration
Swift
static var first: TasksErrorCode { get } -
The last error code in MPPTasksErrorCode (for internal use only).
Declaration
Swift
static var last: TasksErrorCode { get } -
Declaration
Swift
init?(rawValue: UInt)