Package org.robovm.apple.foundation
Enum NSMachErrorCode
- All Implemented Interfaces:
Serializable,Comparable<NSMachErrorCode>,NSErrorCode,ValuedEnum
public enum NSMachErrorCode extends Enum<NSMachErrorCode> implements NSErrorCode
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.robovm.rt.bro.ValuedEnum
ValuedEnum.AsLongMarshaler, ValuedEnum.AsMachineSizedSIntMarshaler, ValuedEnum.AsMachineSizedUIntMarshaler, ValuedEnum.AsSignedByteMarshaler, ValuedEnum.AsSignedIntMarshaler, ValuedEnum.AsSignedShortMarshaler, ValuedEnum.AsUnsignedByteMarshaler, ValuedEnum.AsUnsignedIntMarshaler, ValuedEnum.AsUnsignedShortMarshaler -
Enum Constant Summary
Enum Constants Enum Constant Description ABORTEDThe operation was aborted.ALREADY_IN_SETThe receive right is already a member of the portset.ALREADY_WAITINGA thread is attempting to wait for an event for which there is already a waiting thread.CODESIGN_ERRORDuring a page fault, indicates that the page was rejected as a result of a signature check.DEFAULT_SETAn attempt was made to destroy the default processor set.EXCEPTION_PROTECTEDAn attempt was made to fetch an exception port that is protected, or to abort a thread while processing a protected exception.FAILUREThe function could not be performed.INVALID_ADDRESSSpecified address is not currently valid.INVALID_ARGUMENTThe function requested was not applicable to this type of argument, or an argument is invalidINVALID_CAPABILITYThe supplied (port) capability is improper.INVALID_HOSTTarget host isn't actually a host.INVALID_LEDGERA ledger was required but not supplied.INVALID_MEMORY_CONTROLThe port was not a memory cache control port.INVALID_NAMEThe name doesn't denote a right in the task.INVALID_OBJECTThe external memory manager failed to initialize the memory object.INVALID_POLICYThe specified scheduling policy is not currently enabled for the processor set.INVALID_PROCESSOR_SETAn argument applied to assert processor set privilege was not a processor set control port.INVALID_RIGHTThe name denotes a right, but not an appropriate right.INVALID_SECURITYAn argument supplied to assert security privilege was not a host security port.INVALID_TASKTarget task isn't an active task.INVALID_VALUEA blatant range error.KERN_NO_SPACEThe address range specified is already in use, or no address range of the size specified could be found.LOCK_OWNEDThe lock is already owned by another threadLOCK_OWNED_SELFThe lock is already owned by the calling threadLOCK_SET_DESTROYEDLock set has been destroyed and is no longer available.LOCK_UNSTABLEThe thread holding the lock terminated before releasing the lockMEMORY_DATA_MOVEDA 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.MEMORY_ERRORDuring a page fault, the memory object indicated that the data could not be returned.MEMORY_FAILUREDuring a page fault, the target address refers to a memory object that has been destroyed.MEMORY_PRESENTAn attempt was made to supply "precious" data for memory that is already present in a memory object.MEMORY_RESTART_COPYA strategic copy was attempted of an object upon which a quicker copy is now possible.NAME_EXISTSThe name already denotes a right in the task.NO_ACCESSBogus access restriction.NODE_DOWNRemote node down or inaccessible.NOT_DEPRESSEDthread_depress_abort was called on a thread which was not currently depressed.NOT_IN_SETThe receive right is not a member of a port set.NOT_RECEIVERThe task in question does not hold receive rights for the port argument.NOT_SUPPORTEDEmpty thread activation (No thread linked to it)NOT_WAITINGA signalled thread was not actually waiting.OPERATION_TIMED_OUTSome thread-oriented operation (semaphore_wait) timed outPOLICY_LIMITThe specified scheduling attributes exceed the thread's limits.PROTECTION_FAILURESpecified memory is valid, but does not permit the required forms of access.RESOURCE_SHORTAGEA system resource could not be allocated to fulfill this request.RETURN_MAXMaximum return value allowableRIGHT_EXISTSThe task already has send or receive rights for the port under another name.RPC_CONTINUE_ORPHANAllow an orphaned activation to continue executing.RPC_SERVER_TERMINATEDReturn from RPC indicating the target server was terminated before it successfully repliedRPC_TERMINATE_ORPHANTerminate an orphaned activation.SEMAPHORE_DESTROYEDSemaphore has been destroyed and is no longer available.SUCCESSTERMINATEDObject has been terminated and is no longer availableUREFS_OVERFLOWOperation would overflow limit on user-references. -
Method Summary
Modifier and Type Method Description longvalue()static NSMachErrorCodevalueOf(long n)Returns the enum constant of this type with the specified name.static NSMachErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static NSMachErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
-
INVALID_ADDRESS
Specified address is not currently valid. -
PROTECTION_FAILURE
Specified memory is valid, but does not permit the required forms of access. -
KERN_NO_SPACE
The address range specified is already in use, or no address range of the size specified could be found. -
INVALID_ARGUMENT
The function requested was not applicable to this type of argument, or an argument is invalid -
FAILURE
The function could not be performed. A catch-all. -
RESOURCE_SHORTAGE
A system resource could not be allocated to fulfill this request. This failure may not be permanent. -
NOT_RECEIVER
The task in question does not hold receive rights for the port argument. -
NO_ACCESS
Bogus access restriction. -
MEMORY_FAILURE
During a page fault, the target address refers to a memory object that has been destroyed. This failure is permanent. -
MEMORY_ERROR
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. -
ALREADY_IN_SET
The receive right is already a member of the portset. -
NOT_IN_SET
The receive right is not a member of a port set. -
NAME_EXISTS
The name already denotes a right in the task. -
ABORTED
The operation was aborted. Ipc code will catch this and reflect it as a message error. -
INVALID_NAME
The name doesn't denote a right in the task. -
INVALID_TASK
Target task isn't an active task. -
INVALID_RIGHT
The name denotes a right, but not an appropriate right. -
INVALID_VALUE
A blatant range error. -
UREFS_OVERFLOW
Operation would overflow limit on user-references. -
INVALID_CAPABILITY
The supplied (port) capability is improper. -
RIGHT_EXISTS
The task already has send or receive rights for the port under another name. -
INVALID_HOST
Target host isn't actually a host. -
MEMORY_PRESENT
An attempt was made to supply "precious" data for memory that is already present in a memory object. -
MEMORY_DATA_MOVED
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. -
MEMORY_RESTART_COPY
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. -
INVALID_PROCESSOR_SET
An argument applied to assert processor set privilege was not a processor set control port. -
POLICY_LIMIT
The specified scheduling attributes exceed the thread's limits. -
INVALID_POLICY
The specified scheduling policy is not currently enabled for the processor set. -
INVALID_OBJECT
The external memory manager failed to initialize the memory object. -
ALREADY_WAITING
A thread is attempting to wait for an event for which there is already a waiting thread. -
DEFAULT_SET
An attempt was made to destroy the default processor set. -
EXCEPTION_PROTECTED
An attempt was made to fetch an exception port that is protected, or to abort a thread while processing a protected exception. -
INVALID_LEDGER
A ledger was required but not supplied. -
INVALID_MEMORY_CONTROL
The port was not a memory cache control port. -
INVALID_SECURITY
An argument supplied to assert security privilege was not a host security port. -
NOT_DEPRESSED
thread_depress_abort was called on a thread which was not currently depressed. -
TERMINATED
Object has been terminated and is no longer available -
LOCK_SET_DESTROYED
Lock set has been destroyed and is no longer available. -
LOCK_UNSTABLE
The thread holding the lock terminated before releasing the lock -
LOCK_OWNED
The lock is already owned by another thread -
LOCK_OWNED_SELF
The lock is already owned by the calling thread -
SEMAPHORE_DESTROYED
Semaphore has been destroyed and is no longer available. -
RPC_SERVER_TERMINATED
Return from RPC indicating the target server was terminated before it successfully replied -
RPC_TERMINATE_ORPHAN
Terminate an orphaned activation. -
RPC_CONTINUE_ORPHAN
Allow an orphaned activation to continue executing. -
NOT_SUPPORTED
Empty thread activation (No thread linked to it) -
NODE_DOWN
Remote node down or inaccessible. -
NOT_WAITING
A signalled thread was not actually waiting. -
OPERATION_TIMED_OUT
Some thread-oriented operation (semaphore_wait) timed out -
CODESIGN_ERROR
During a page fault, indicates that the page was rejected as a result of a signature check. -
RETURN_MAX
Maximum return value allowable
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public long value()- Specified by:
valuein interfaceValuedEnum
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
n- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-