Package org.robovm.apple.foundation
Enum NSMachErrorCode
- java.lang.Object
-
- java.lang.Enum<NSMachErrorCode>
-
- org.robovm.apple.foundation.NSMachErrorCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NSMachErrorCode>
,NSErrorCode
,org.robovm.rt.bro.ValuedEnum
public enum NSMachErrorCode extends java.lang.Enum<NSMachErrorCode> implements NSErrorCode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.robovm.rt.bro.ValuedEnum
org.robovm.rt.bro.ValuedEnum.AsLongMarshaler, org.robovm.rt.bro.ValuedEnum.AsMachineSizedSIntMarshaler, org.robovm.rt.bro.ValuedEnum.AsMachineSizedUIntMarshaler, org.robovm.rt.bro.ValuedEnum.AsSignedByteMarshaler, org.robovm.rt.bro.ValuedEnum.AsSignedIntMarshaler, org.robovm.rt.bro.ValuedEnum.AsSignedShortMarshaler, org.robovm.rt.bro.ValuedEnum.AsUnsignedByteMarshaler, org.robovm.rt.bro.ValuedEnum.AsUnsignedIntMarshaler, org.robovm.rt.bro.ValuedEnum.AsUnsignedShortMarshaler
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTED
The operation was aborted.ALREADY_IN_SET
The receive right is already a member of the portset.ALREADY_WAITING
A thread is attempting to wait for an event for which there is already a waiting thread.CODESIGN_ERROR
During a page fault, indicates that the page was rejected as a result of a signature check.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.FAILURE
The function could not be performed.INVALID_ADDRESS
Specified address is not currently valid.INVALID_ARGUMENT
The function requested was not applicable to this type of argument, or an argument is invalidINVALID_CAPABILITY
The supplied (port) capability is improper.INVALID_HOST
Target host isn't actually a host.INVALID_LEDGER
A ledger was required but not supplied.INVALID_MEMORY_CONTROL
The port was not a memory cache control port.INVALID_NAME
The name doesn't denote a right in the task.INVALID_OBJECT
The external memory manager failed to initialize the memory object.INVALID_POLICY
The specified scheduling policy is not currently enabled for the processor set.INVALID_PROCESSOR_SET
An argument applied to assert processor set privilege was not a processor set control port.INVALID_RIGHT
The name denotes a right, but not an appropriate right.INVALID_SECURITY
An argument supplied to assert security privilege was not a host security port.INVALID_TASK
Target task isn't an active task.INVALID_VALUE
A blatant range error.KERN_NO_SPACE
The address range specified is already in use, or no address range of the size specified could be found.LOCK_OWNED
The lock is already owned by another threadLOCK_OWNED_SELF
The lock is already owned by the calling threadLOCK_SET_DESTROYED
Lock set has been destroyed and is no longer available.LOCK_UNSTABLE
The thread holding the lock terminated before releasing the lockMEMORY_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.MEMORY_ERROR
During a page fault, the memory object indicated that the data could not be returned.MEMORY_FAILURE
During a page fault, the target address refers to a memory object that has been destroyed.MEMORY_PRESENT
An attempt was made to supply "precious" data for memory that is already present in a memory object.MEMORY_RESTART_COPY
A strategic copy was attempted of an object upon which a quicker copy is now possible.NAME_EXISTS
The name already denotes a right in the task.NO_ACCESS
Bogus access restriction.NODE_DOWN
Remote node down or inaccessible.NOT_DEPRESSED
thread_depress_abort was called on a thread which was not currently depressed.NOT_IN_SET
The receive right is not a member of a port set.NOT_RECEIVER
The task in question does not hold receive rights for the port argument.NOT_SUPPORTED
Empty thread activation (No thread linked to it)NOT_WAITING
A signalled thread was not actually waiting.OPERATION_TIMED_OUT
Some thread-oriented operation (semaphore_wait) timed outPOLICY_LIMIT
The specified scheduling attributes exceed the thread's limits.PROTECTION_FAILURE
Specified memory is valid, but does not permit the required forms of access.RESOURCE_SHORTAGE
A system resource could not be allocated to fulfill this request.RETURN_MAX
Maximum return value allowableRIGHT_EXISTS
The task already has send or receive rights for the port under another name.RPC_CONTINUE_ORPHAN
Allow an orphaned activation to continue executing.RPC_SERVER_TERMINATED
Return from RPC indicating the target server was terminated before it successfully repliedRPC_TERMINATE_ORPHAN
Terminate an orphaned activation.SEMAPHORE_DESTROYED
Semaphore has been destroyed and is no longer available.SUCCESS
TERMINATED
Object has been terminated and is no longer availableUREFS_OVERFLOW
Operation would overflow limit on user-references.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
value()
static NSMachErrorCode
valueOf(long n)
Returns the enum constant of this type with the specified name.static NSMachErrorCode
valueOf(java.lang.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 Detail
-
SUCCESS
public static final NSMachErrorCode SUCCESS
-
INVALID_ADDRESS
public static final NSMachErrorCode INVALID_ADDRESS
Specified address is not currently valid.
-
PROTECTION_FAILURE
public static final NSMachErrorCode PROTECTION_FAILURE
Specified memory is valid, but does not permit the required forms of access.
-
KERN_NO_SPACE
public static final NSMachErrorCode KERN_NO_SPACE
The address range specified is already in use, or no address range of the size specified could be found.
-
INVALID_ARGUMENT
public static final NSMachErrorCode INVALID_ARGUMENT
The function requested was not applicable to this type of argument, or an argument is invalid
-
FAILURE
public static final NSMachErrorCode FAILURE
The function could not be performed. A catch-all.
-
RESOURCE_SHORTAGE
public static final NSMachErrorCode RESOURCE_SHORTAGE
A system resource could not be allocated to fulfill this request. This failure may not be permanent.
-
NOT_RECEIVER
public static final NSMachErrorCode NOT_RECEIVER
The task in question does not hold receive rights for the port argument.
-
NO_ACCESS
public static final NSMachErrorCode NO_ACCESS
Bogus access restriction.
-
MEMORY_FAILURE
public static final NSMachErrorCode MEMORY_FAILURE
During a page fault, the target address refers to a memory object that has been destroyed. This failure is permanent.
-
MEMORY_ERROR
public static final NSMachErrorCode 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
public static final NSMachErrorCode ALREADY_IN_SET
The receive right is already a member of the portset.
-
NOT_IN_SET
public static final NSMachErrorCode NOT_IN_SET
The receive right is not a member of a port set.
-
NAME_EXISTS
public static final NSMachErrorCode NAME_EXISTS
The name already denotes a right in the task.
-
ABORTED
public static final NSMachErrorCode ABORTED
The operation was aborted. Ipc code will catch this and reflect it as a message error.
-
INVALID_NAME
public static final NSMachErrorCode INVALID_NAME
The name doesn't denote a right in the task.
-
INVALID_TASK
public static final NSMachErrorCode INVALID_TASK
Target task isn't an active task.
-
INVALID_RIGHT
public static final NSMachErrorCode INVALID_RIGHT
The name denotes a right, but not an appropriate right.
-
INVALID_VALUE
public static final NSMachErrorCode INVALID_VALUE
A blatant range error.
-
UREFS_OVERFLOW
public static final NSMachErrorCode UREFS_OVERFLOW
Operation would overflow limit on user-references.
-
INVALID_CAPABILITY
public static final NSMachErrorCode INVALID_CAPABILITY
The supplied (port) capability is improper.
-
RIGHT_EXISTS
public static final NSMachErrorCode RIGHT_EXISTS
The task already has send or receive rights for the port under another name.
-
INVALID_HOST
public static final NSMachErrorCode INVALID_HOST
Target host isn't actually a host.
-
MEMORY_PRESENT
public static final NSMachErrorCode MEMORY_PRESENT
An attempt was made to supply "precious" data for memory that is already present in a memory object.
-
MEMORY_DATA_MOVED
public static final NSMachErrorCode 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
public static final NSMachErrorCode 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
public static final NSMachErrorCode INVALID_PROCESSOR_SET
An argument applied to assert processor set privilege was not a processor set control port.
-
POLICY_LIMIT
public static final NSMachErrorCode POLICY_LIMIT
The specified scheduling attributes exceed the thread's limits.
-
INVALID_POLICY
public static final NSMachErrorCode INVALID_POLICY
The specified scheduling policy is not currently enabled for the processor set.
-
INVALID_OBJECT
public static final NSMachErrorCode INVALID_OBJECT
The external memory manager failed to initialize the memory object.
-
ALREADY_WAITING
public static final NSMachErrorCode ALREADY_WAITING
A thread is attempting to wait for an event for which there is already a waiting thread.
-
DEFAULT_SET
public static final NSMachErrorCode DEFAULT_SET
An attempt was made to destroy the default processor set.
-
EXCEPTION_PROTECTED
public static final NSMachErrorCode 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
public static final NSMachErrorCode INVALID_LEDGER
A ledger was required but not supplied.
-
INVALID_MEMORY_CONTROL
public static final NSMachErrorCode INVALID_MEMORY_CONTROL
The port was not a memory cache control port.
-
INVALID_SECURITY
public static final NSMachErrorCode INVALID_SECURITY
An argument supplied to assert security privilege was not a host security port.
-
NOT_DEPRESSED
public static final NSMachErrorCode NOT_DEPRESSED
thread_depress_abort was called on a thread which was not currently depressed.
-
TERMINATED
public static final NSMachErrorCode TERMINATED
Object has been terminated and is no longer available
-
LOCK_SET_DESTROYED
public static final NSMachErrorCode LOCK_SET_DESTROYED
Lock set has been destroyed and is no longer available.
-
LOCK_UNSTABLE
public static final NSMachErrorCode LOCK_UNSTABLE
The thread holding the lock terminated before releasing the lock
-
LOCK_OWNED
public static final NSMachErrorCode LOCK_OWNED
The lock is already owned by another thread
-
LOCK_OWNED_SELF
public static final NSMachErrorCode LOCK_OWNED_SELF
The lock is already owned by the calling thread
-
SEMAPHORE_DESTROYED
public static final NSMachErrorCode SEMAPHORE_DESTROYED
Semaphore has been destroyed and is no longer available.
-
RPC_SERVER_TERMINATED
public static final NSMachErrorCode RPC_SERVER_TERMINATED
Return from RPC indicating the target server was terminated before it successfully replied
-
RPC_TERMINATE_ORPHAN
public static final NSMachErrorCode RPC_TERMINATE_ORPHAN
Terminate an orphaned activation.
-
RPC_CONTINUE_ORPHAN
public static final NSMachErrorCode RPC_CONTINUE_ORPHAN
Allow an orphaned activation to continue executing.
-
NOT_SUPPORTED
public static final NSMachErrorCode NOT_SUPPORTED
Empty thread activation (No thread linked to it)
-
NODE_DOWN
public static final NSMachErrorCode NODE_DOWN
Remote node down or inaccessible.
-
NOT_WAITING
public static final NSMachErrorCode NOT_WAITING
A signalled thread was not actually waiting.
-
OPERATION_TIMED_OUT
public static final NSMachErrorCode OPERATION_TIMED_OUT
Some thread-oriented operation (semaphore_wait) timed out
-
CODESIGN_ERROR
public static final NSMachErrorCode CODESIGN_ERROR
During a page fault, indicates that the page was rejected as a result of a signature check.
-
RETURN_MAX
public static final NSMachErrorCode RETURN_MAX
Maximum return value allowable
-
-
Method Detail
-
values
public static NSMachErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NSMachErrorCode c : NSMachErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NSMachErrorCode valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public long value()
- Specified by:
value
in interfaceorg.robovm.rt.bro.ValuedEnum
-
valueOf
public static NSMachErrorCode valueOf(long n)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-