One Logo Pool Ball
Foundation · IOS API REFERENCE

MachError

struct · iOS 8.0+ · SDK 27.1

struct MachError

Describes an error in the Mach error domain.

Members (53)

get · iOS 8.0+

memoryError

TypeScript
static get memoryError(): SDKHandle
Swift declaration
static var memoryError: MachError.Code { get }

During a page fault, the memory object indicated that the data could not be returned. This failure may be temporary; future attempts to access this same data may succeed, as defined by the memory object.

get · iOS 8.0+

codesignError

TypeScript
static get codesignError(): SDKHandle
Swift declaration
static var codesignError: MachError.Code { get }

During a page fault, indicates that the page was rejected as a result of a signature check.

get · iOS 8.0+

defaultSet

TypeScript
static get defaultSet(): SDKHandle
Swift declaration
static var defaultSet: MachError.Code { get }

An attempt was made to destroy the default processor set.

get · iOS 8.0+

nameExists

TypeScript
static get nameExists(): SDKHandle
Swift declaration
static var nameExists: MachError.Code { get }

The name already denotes a right in the task.

get · iOS 8.0+

notWaiting

TypeScript
static get notWaiting(): SDKHandle
Swift declaration
static var notWaiting: MachError.Code { get }

A signalled thread was not actually waiting.

get · iOS 8.0+

terminated

TypeScript
static get terminated(): SDKHandle
Swift declaration
static var terminated: MachError.Code { get }

Object has been terminated and is no longer available.

get · iOS 8.0+

errorDomain

TypeScript
static get errorDomain(): string
Swift declaration
static var errorDomain: String { get }

The domain of the error.

get · iOS 8.0+

invalidHost

TypeScript
static get invalidHost(): SDKHandle
Swift declaration
static var invalidHost: MachError.Code { get }

Target host isn't actually a host.

get · iOS 8.0+

invalidName

TypeScript
static get invalidName(): SDKHandle
Swift declaration
static var invalidName: MachError.Code { get }

The name doesn't denote a right in the task.

get · iOS 8.0+

invalidTask

TypeScript
static get invalidTask(): SDKHandle
Swift declaration
static var invalidTask: MachError.Code { get }

Target task isn't an active task.

get · iOS 8.0+

notReceiver

TypeScript
static get notReceiver(): SDKHandle
Swift declaration
static var notReceiver: MachError.Code { get }

The task in question does not hold receive rights for the port argument.

get · iOS 8.0+

policyLimit

TypeScript
static get policyLimit(): SDKHandle
Swift declaration
static var policyLimit: MachError.Code { get }

The specified scheduling attributes exceed the thread's limits.

get · iOS 8.0+

rightExists

TypeScript
static get rightExists(): SDKHandle
Swift declaration
static var rightExists: MachError.Code { get }

The task already has send or receive rights for the port under another name.

get · iOS 8.0+

alreadyInSet

TypeScript
static get alreadyInSet(): SDKHandle
Swift declaration
static var alreadyInSet: MachError.Code { get }

The receive right is already a member of the portset.

get · iOS 8.0+

invalidRight

TypeScript
static get invalidRight(): SDKHandle
Swift declaration
static var invalidRight: MachError.Code { get }

The name denotes a right, but not an appropriate right.

get · iOS 8.0+

invalidValue

TypeScript
static get invalidValue(): SDKHandle
Swift declaration
static var invalidValue: MachError.Code { get }

A blatant range error.

get · iOS 8.0+

lockUnstable

TypeScript
static get lockUnstable(): SDKHandle
Swift declaration
static var lockUnstable: MachError.Code { get }

The thread holding the lock terminated before releasing the lock.

get · iOS 8.0+

notDepressed

TypeScript
static get notDepressed(): SDKHandle
Swift declaration
static var notDepressed: MachError.Code { get }

thread_depress_abort was called on a thread which was not currently depressed.

get · iOS 8.0+

notSupported

TypeScript
static get notSupported(): SDKHandle
Swift declaration
static var notSupported: MachError.Code { get }

Empty thread activation (No thread linked to it).

get · iOS 8.0+

policyStatic

TypeScript
static get policyStatic(): SDKHandle
Swift declaration
static var policyStatic: MachError.Code { get }

The requested property cannot be changed at this time.

get · iOS 8.0+

invalidLedger

TypeScript
static get invalidLedger(): SDKHandle
Swift declaration
static var invalidLedger: MachError.Code { get }

A ledger was required but not supplied.

get · iOS 8.0+

invalidObject

TypeScript
static get invalidObject(): SDKHandle
Swift declaration
static var invalidObject: MachError.Code { get }

The external memory manager failed to initialize the memory object.

get · iOS 8.0+

invalidPolicy

TypeScript
static get invalidPolicy(): SDKHandle
Swift declaration
static var invalidPolicy: MachError.Code { get }

The specified scheduling policy is not currently enabled for the processor set.

get · iOS 8.0+

lockOwnedSelf

TypeScript
static get lockOwnedSelf(): SDKHandle
Swift declaration
static var lockOwnedSelf: MachError.Code { get }

The lock is already owned by the calling thread.

get · iOS 8.0+

memoryFailure

TypeScript
static get memoryFailure(): SDKHandle
Swift declaration
static var memoryFailure: MachError.Code { get }

During a page fault, the target address refers to a memory object that has been destroyed. This failure is permanent.

get · iOS 8.0+

memoryPresent

TypeScript
static get memoryPresent(): SDKHandle
Swift declaration
static var memoryPresent: MachError.Code { get }

An attempt was made to supply "precious" data for memory that is already present in a memory object.

get · iOS 8.0+

alreadyWaiting

TypeScript
static get alreadyWaiting(): SDKHandle
Swift declaration
static var alreadyWaiting: MachError.Code { get }

A thread is attempting to wait for an event for which there is already a waiting thread.

get · iOS 8.0+

invalidAddress

TypeScript
static get invalidAddress(): SDKHandle
Swift declaration
static var invalidAddress: MachError.Code { get }

Specified address is not currently valid.

get · iOS 8.0+

invalidArgument

TypeScript
static get invalidArgument(): SDKHandle
Swift declaration
static var invalidArgument: MachError.Code { get }

The function requested was not applicable to this type of argument, or an argument is invalid.

get · iOS 8.0+

invalidSecurity

TypeScript
static get invalidSecurity(): SDKHandle
Swift declaration
static var invalidSecurity: MachError.Code { get }

An argument supplied to assert security privilege was not a host security port.

get · iOS 8.0+

memoryDataMoved

TypeScript
static get memoryDataMoved(): SDKHandle
Swift declaration
static var memoryDataMoved: MachError.Code { get }

A page was requested of a memory manager via memory_object_data_request for an object using a MEMORY_OBJECT_COPY_CALL strategy, with the VM_PROT_WANTS_COPY flag being used to specify that the page desired is for a copy of the object, and the memory manager has detected the page was pushed into a copy of the object while the kernel was walking the shadow chain from the copy to the object. This error code is delivered via memory_object_data_error and is handled by the kernel (it forces the kernel to restart the fault). It will not be seen by users.

get · iOS 8.0+

lockSetDestroyed

TypeScript
static get lockSetDestroyed(): SDKHandle
Swift declaration
static var lockSetDestroyed: MachError.Code { get }

Lock set has been destroyed and is no longer available.

get · iOS 8.0+

resourceShortage

TypeScript
static get resourceShortage(): SDKHandle
Swift declaration
static var resourceShortage: MachError.Code { get }

A system resource could not be allocated to fulfill this request. This failure may not be permanent.

get · iOS 8.0+

invalidCapability

TypeScript
static get invalidCapability(): SDKHandle
Swift declaration
static var invalidCapability: MachError.Code { get }

The supplied (port) capability is improper.

get · iOS 8.0+

memoryRestartCopy

TypeScript
static get memoryRestartCopy(): SDKHandle
Swift declaration
static var memoryRestartCopy: MachError.Code { get }

A strategic copy was attempted of an object upon which a quicker copy is now possible. The caller should retry the copy using vm_object_copy_quickly. This error code is seen only by the kernel.

get · iOS 8.0+

operationTimedOut

TypeScript
static get operationTimedOut(): SDKHandle
Swift declaration
static var operationTimedOut: MachError.Code { get }

Some thread-oriented operation (semaphore_wait) timed out.

get · iOS 8.0+

protectionFailure

TypeScript
static get protectionFailure(): SDKHandle
Swift declaration
static var protectionFailure: MachError.Code { get }

Specified memory is valid, but does not permit the required forms of access.

get · iOS 8.0+

rpcContinueOrphan

TypeScript
static get rpcContinueOrphan(): SDKHandle
Swift declaration
static var rpcContinueOrphan: MachError.Code { get }

Allow an orphaned activation to continue executing.

get · iOS 8.0+

exceptionProtected

TypeScript
static get exceptionProtected(): SDKHandle
Swift declaration
static var exceptionProtected: MachError.Code { get }

An attempt was made to fetch an exception port that is protected, or to abort a thread while processing a protected exception.

get · iOS 8.0+

rpcTerminateOrphan

TypeScript
static get rpcTerminateOrphan(): SDKHandle
Swift declaration
static var rpcTerminateOrphan: MachError.Code { get }

Terminate an orphaned activation.

get · iOS 8.0+

semaphoreDestroyed

TypeScript
static get semaphoreDestroyed(): SDKHandle
Swift declaration
static var semaphoreDestroyed: MachError.Code { get }

Semaphore has been destroyed and is no longer available.

get · iOS 8.0+

invalidProcessorSet

TypeScript
static get invalidProcessorSet(): SDKHandle
Swift declaration
static var invalidProcessorSet: MachError.Code { get }

An argument applied to assert processor set privilege was not a processor set control port.

get · iOS 8.0+

rpcServerTerminated

TypeScript
static get rpcServerTerminated(): SDKHandle
Swift declaration
static var rpcServerTerminated: MachError.Code { get }

Return from RPC indicating the target server was terminated before it successfully replied.

get · iOS 8.0+

invalidMemoryControl

TypeScript
static get invalidMemoryControl(): SDKHandle
Swift declaration
static var invalidMemoryControl: MachError.Code { get }

The port was not a memory cache control port.

get · iOS 8.0+

userReferencesOverflow

TypeScript
static get userReferencesOverflow(): SDKHandle
Swift declaration
static var userReferencesOverflow: MachError.Code { get }

Operation would overflow limit on user-references.

get · iOS 8.0+

aborted

TypeScript
static get aborted(): SDKHandle
Swift declaration
static var aborted: MachError.Code { get }

The operation was aborted. Ipc code will catch this and reflect it as a message error.

get · iOS 8.0+

failure

TypeScript
static get failure(): SDKHandle
Swift declaration
static var failure: MachError.Code { get }

The function could not be performed. A catch-all.

get · iOS 8.0+

noSpace

TypeScript
static get noSpace(): SDKHandle
Swift declaration
static var noSpace: MachError.Code { get }

The address range specified is already in use, or no address range of the size specified could be found.

get · iOS 8.0+

success

TypeScript
static get success(): SDKHandle
Swift declaration
static var success: MachError.Code { get }
get · iOS 8.0+

noAccess

TypeScript
static get noAccess(): SDKHandle
Swift declaration
static var noAccess: MachError.Code { get }

Bogus access restriction.

get · iOS 8.0+

nodeDown

TypeScript
static get nodeDown(): SDKHandle
Swift declaration
static var nodeDown: MachError.Code { get }

Remote node down or inaccessible.

get · iOS 8.0+

notInSet

TypeScript
static get notInSet(): SDKHandle
Swift declaration
static var notInSet: MachError.Code { get }

The receive right is not a member of a port set.

get · iOS 8.0+

lockOwned

TypeScript
static get lockOwned(): SDKHandle
Swift declaration
static var lockOwned: MachError.Code { get }

The lock is already owned by another thread.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →