Enum Class SpawnError

java.lang.Object
java.lang.Enum<SpawnError>
org.gnome.glib.SpawnError
All Implemented Interfaces:
Serializable, Comparable<SpawnError>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum SpawnError extends Enum<SpawnError> implements Enumeration
Error codes returned by spawning processes.
  • Enum Constant Details

    • FORK

      public static final SpawnError FORK
      Fork failed due to lack of memory.
    • READ

      public static final SpawnError READ
      Read or select on pipes failed.
    • CHDIR

      public static final SpawnError CHDIR
      Changing to working directory failed.
    • ACCES

      public static final SpawnError ACCES
      execv() returned EACCES
    • PERM

      public static final SpawnError PERM
      execv() returned EPERM
    • TOO_BIG

      public static final SpawnError TOO_BIG
      execv() returned E2BIG
    • NOEXEC

      public static final SpawnError NOEXEC
      execv() returned ENOEXEC
    • NAMETOOLONG

      public static final SpawnError NAMETOOLONG
      execv() returned ENAMETOOLONG
    • NOENT

      public static final SpawnError NOENT
      execv() returned ENOENT
    • NOMEM

      public static final SpawnError NOMEM
      execv() returned ENOMEM
    • NOTDIR

      public static final SpawnError NOTDIR
      execv() returned ENOTDIR
    • LOOP

      public static final SpawnError LOOP
      execv() returned ELOOP
    • TXTBUSY

      public static final SpawnError TXTBUSY
      execv() returned ETXTBUSY
    • IO

      public static final SpawnError IO
      execv() returned EIO
    • NFILE

      public static final SpawnError NFILE
      execv() returned ENFILE
    • MFILE

      public static final SpawnError MFILE
      execv() returned EMFILE
    • INVAL

      public static final SpawnError INVAL
      execv() returned EINVAL
    • ISDIR

      public static final SpawnError ISDIR
      execv() returned EISDIR
    • LIBBAD

      public static final SpawnError LIBBAD
      execv() returned ELIBBAD
    • FAILED

      public static final SpawnError FAILED
      Some other fatal failure, error->message should explain.
  • Field Details

    • _2BIG

      public static final SpawnError _2BIG
      deprecated alias for TOO_BIG (deprecated since GLib 2.32)
  • Method Details

    • values

      public static SpawnError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SpawnError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static SpawnError of(int value)
      Create a new SpawnError for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static SpawnError of(MemorySegment address)
      Create a new SpawnError for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address