Enum NSMachErrorCode

java.lang.Object
java.lang.Enum<NSMachErrorCode>
org.robovm.apple.foundation.NSMachErrorCode
All Implemented Interfaces:
Serializable, Comparable<NSMachErrorCode>, NSErrorCode, ValuedEnum

public enum NSMachErrorCode
extends Enum<NSMachErrorCode>
implements NSErrorCode
  • Enum Constant Details

    • 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 Details

    • values

      public static NSMachErrorCode[] 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

      public static NSMachErrorCode valueOf​(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public long value()
      Specified by:
      value in interface 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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null