Enum Class LibcErrorCodes

java.lang.Object
java.lang.Enum<LibcErrorCodes>
com.github.hypfvieh.system.LibcErrorCodes
All Implemented Interfaces:
Serializable, Comparable<LibcErrorCodes>, Constable

public enum LibcErrorCodes extends Enum<LibcErrorCodes>
Enum of error codes used in various c libararies.
Since:
v1.0.3 - 2018-03-09
Author:
hypfvieh
  • Enum Constant Details

    • EPERM

      public static final LibcErrorCodes EPERM
      Operation not permitted.
    • ENOENT

      public static final LibcErrorCodes ENOENT
      No such file or directory.
    • ESRCH

      public static final LibcErrorCodes ESRCH
      No such process.
    • EINTR

      public static final LibcErrorCodes EINTR
      Interrupted system call.
    • EIO

      public static final LibcErrorCodes EIO
      I/O error.
    • ENXIO

      public static final LibcErrorCodes ENXIO
      No such device or address.
    • E2BIG

      public static final LibcErrorCodes E2BIG
      Argument list too long.
    • ENOEXEC

      public static final LibcErrorCodes ENOEXEC
      Exec format error.
    • EBADF

      public static final LibcErrorCodes EBADF
      Bad file number.
    • ECHILD

      public static final LibcErrorCodes ECHILD
      No child processes.
    • EAGAIN

      public static final LibcErrorCodes EAGAIN
      Try again.
    • ENOMEM

      public static final LibcErrorCodes ENOMEM
      Out of memory.
    • EACCES

      public static final LibcErrorCodes EACCES
      Permission denied.
    • EFAULT

      public static final LibcErrorCodes EFAULT
      Bad address.
    • ENOTBLK

      public static final LibcErrorCodes ENOTBLK
      Block device required.
    • EBUSY

      public static final LibcErrorCodes EBUSY
      Device or resource busy.
    • EEXIST

      public static final LibcErrorCodes EEXIST
      File exists.
    • EXDEV

      public static final LibcErrorCodes EXDEV
      Cross-device link.
    • ENODEV

      public static final LibcErrorCodes ENODEV
      No such device.
    • ENOTDIR

      public static final LibcErrorCodes ENOTDIR
      Not a directory.
    • EISDIR

      public static final LibcErrorCodes EISDIR
      Is a directory.
    • EINVAL

      public static final LibcErrorCodes EINVAL
      Invalid argument.
    • ENFILE

      public static final LibcErrorCodes ENFILE
      File table overflow.
    • EMFILE

      public static final LibcErrorCodes EMFILE
      Too many open files.
    • ENOTTY

      public static final LibcErrorCodes ENOTTY
      Not a typewriter.
    • ETXTBSY

      public static final LibcErrorCodes ETXTBSY
      Text file busy.
    • EFBIG

      public static final LibcErrorCodes EFBIG
      File too large.
    • ENOSPC

      public static final LibcErrorCodes ENOSPC
      No space left on device.
    • ESPIPE

      public static final LibcErrorCodes ESPIPE
      Illegal seek.
    • EROFS

      public static final LibcErrorCodes EROFS
      Read-only file system.
    • EPIPE

      public static final LibcErrorCodes EPIPE
      Broken pipe.
    • EDOM

      public static final LibcErrorCodes EDOM
      Math argument out of domain of func.
    • ERANGE

      public static final LibcErrorCodes ERANGE
      Math result not representable.
    • EDEADLK

      public static final LibcErrorCodes EDEADLK
      Resource deadlock would occur.
    • ENAMETOOLONG

      public static final LibcErrorCodes ENAMETOOLONG
      File name too long.
    • ENOLCK

      public static final LibcErrorCodes ENOLCK
      No record locks available.
    • ENOSYS

      public static final LibcErrorCodes ENOSYS
      Invalid system call number.
    • ENOTEMPTY

      public static final LibcErrorCodes ENOTEMPTY
      Directory not empty.
    • ELOOP

      public static final LibcErrorCodes ELOOP
      Too many symbolic links encountered.
    • EWOULDBLOCK

      public static final LibcErrorCodes EWOULDBLOCK
      Operation would block.
    • ENOMSG

      public static final LibcErrorCodes ENOMSG
      No message of desired type.
    • EIDRM

      public static final LibcErrorCodes EIDRM
      Identifier removed.
    • ECHRNG

      public static final LibcErrorCodes ECHRNG
      Channel number out of range.
    • EL2NSYNC

      public static final LibcErrorCodes EL2NSYNC
      Level 2 not synchronized.
    • EL3HLT

      public static final LibcErrorCodes EL3HLT
      Level 3 halted.
    • EL3RST

      public static final LibcErrorCodes EL3RST
      Level 3 reset.
    • ELNRNG

      public static final LibcErrorCodes ELNRNG
      Link number out of range.
    • EUNATCH

      public static final LibcErrorCodes EUNATCH
      Protocol driver not attached.
    • ENOCSI

      public static final LibcErrorCodes ENOCSI
      No CSI structure available.
    • EL2HLT

      public static final LibcErrorCodes EL2HLT
      Level 2 halted.
    • EBADE

      public static final LibcErrorCodes EBADE
      Invalid exchange.
    • EBADR

      public static final LibcErrorCodes EBADR
      Invalid request descriptor.
    • EXFULL

      public static final LibcErrorCodes EXFULL
      Exchange full.
    • ENOANO

      public static final LibcErrorCodes ENOANO
      No anode.
    • EBADRQC

      public static final LibcErrorCodes EBADRQC
      Invalid request code.
    • EBADSLT

      public static final LibcErrorCodes EBADSLT
      Invalid slot.
    • EDEADLOCK

      public static final LibcErrorCodes EDEADLOCK
      Resource deadlock would occur.
    • EBFONT

      public static final LibcErrorCodes EBFONT
      Bad font file format.
    • ENOSTR

      public static final LibcErrorCodes ENOSTR
      Device not a stream.
    • ENODATA

      public static final LibcErrorCodes ENODATA
      No data available.
    • ETIME

      public static final LibcErrorCodes ETIME
      Timer expired.
    • ENOSR

      public static final LibcErrorCodes ENOSR
      Out of streams resources.
    • ENONET

      public static final LibcErrorCodes ENONET
      Machine is not on the network.
    • ENOPKG

      public static final LibcErrorCodes ENOPKG
      Package not installed.
    • EREMOTE

      public static final LibcErrorCodes EREMOTE
      Object is remote.
    • EADV

      public static final LibcErrorCodes EADV
      Advertise error.
    • ESRMNT

      public static final LibcErrorCodes ESRMNT
      Srmount error.
    • ECOMM

      public static final LibcErrorCodes ECOMM
      Communication error on send.
    • EPROTO

      public static final LibcErrorCodes EPROTO
      Protocol error.
    • EMULTIHOP

      public static final LibcErrorCodes EMULTIHOP
      Multihop attempted.
    • EDOTDOT

      public static final LibcErrorCodes EDOTDOT
      RFS specific error.
    • EBADMSG

      public static final LibcErrorCodes EBADMSG
      Not a data message.
    • EOVERFLOW

      public static final LibcErrorCodes EOVERFLOW
      Value too large for defined data type.
    • ENOTUNIQ

      public static final LibcErrorCodes ENOTUNIQ
      Name not unique on network.
    • EBADFD

      public static final LibcErrorCodes EBADFD
      File descriptor in bad state.
    • EREMCHG

      public static final LibcErrorCodes EREMCHG
      Remote address changed.
    • ELIBACC

      public static final LibcErrorCodes ELIBACC
      Can not access a needed shared library.
    • ELIBBAD

      public static final LibcErrorCodes ELIBBAD
      Accessing a corrupted shared library.
    • ELIBSCN

      public static final LibcErrorCodes ELIBSCN
      .lib section in a.out corrupted.
    • ELIBMAX

      public static final LibcErrorCodes ELIBMAX
      Attempting to link in too many shared libraries.
    • ELIBEXEC

      public static final LibcErrorCodes ELIBEXEC
      Cannot exec a shared library directly.
    • EILSEQ

      public static final LibcErrorCodes EILSEQ
      Illegal byte sequence.
    • ERESTART

      public static final LibcErrorCodes ERESTART
      Interrupted system call should be restarted.
    • ESTRPIPE

      public static final LibcErrorCodes ESTRPIPE
      Streams pipe error.
    • EUSERS

      public static final LibcErrorCodes EUSERS
      Too many users.
    • ENOTSOCK

      public static final LibcErrorCodes ENOTSOCK
      Socket operation on non-socket.
    • EDESTADDRREQ

      public static final LibcErrorCodes EDESTADDRREQ
      Destination address required.
    • EMSGSIZE

      public static final LibcErrorCodes EMSGSIZE
      Message too long.
    • EPROTOTYPE

      public static final LibcErrorCodes EPROTOTYPE
      Protocol wrong type for socket.
    • ENOPROTOOPT

      public static final LibcErrorCodes ENOPROTOOPT
      Protocol not available.
    • EPROTONOSUPPORT

      public static final LibcErrorCodes EPROTONOSUPPORT
      Protocol not supported.
    • ESOCKTNOSUPPORT

      public static final LibcErrorCodes ESOCKTNOSUPPORT
      Socket type not supported.
    • EOPNOTSUPP

      public static final LibcErrorCodes EOPNOTSUPP
      Operation not supported on transport endpoint.
    • EPFNOSUPPORT

      public static final LibcErrorCodes EPFNOSUPPORT
      Protocol family not supported.
    • EAFNOSUPPORT

      public static final LibcErrorCodes EAFNOSUPPORT
      Address family not supported by protocol.
    • EADDRINUSE

      public static final LibcErrorCodes EADDRINUSE
      Address already in use.
    • EADDRNOTAVAIL

      public static final LibcErrorCodes EADDRNOTAVAIL
      Cannot assign requested address.
    • ENETDOWN

      public static final LibcErrorCodes ENETDOWN
      Network is down.
    • ENETUNREACH

      public static final LibcErrorCodes ENETUNREACH
      Network is unreachable.
    • ENETRESET

      public static final LibcErrorCodes ENETRESET
      Network dropped connection because of reset.
    • ECONNABORTED

      public static final LibcErrorCodes ECONNABORTED
      Software caused connection abort.
    • ECONNRESET

      public static final LibcErrorCodes ECONNRESET
      Connection reset by peer.
    • ENOBUFS

      public static final LibcErrorCodes ENOBUFS
      No buffer space available.
    • EISCONN

      public static final LibcErrorCodes EISCONN
      Transport endpoint is already connected.
    • ENOTCONN

      public static final LibcErrorCodes ENOTCONN
      Transport endpoint is not connected.
    • ESHUTDOWN

      public static final LibcErrorCodes ESHUTDOWN
      Cannot send after transport endpoint shutdown.
    • ETOOMANYREFS

      public static final LibcErrorCodes ETOOMANYREFS
      Too many references: cannot splice.
    • ETIMEDOUT

      public static final LibcErrorCodes ETIMEDOUT
      Connection timed out.
    • ECONNREFUSED

      public static final LibcErrorCodes ECONNREFUSED
      Connection refused.
    • EHOSTDOWN

      public static final LibcErrorCodes EHOSTDOWN
      Host is down.
    • EHOSTUNREACH

      public static final LibcErrorCodes EHOSTUNREACH
      No route to host.
    • EALREADY

      public static final LibcErrorCodes EALREADY
      Operation already in progress.
    • EINPROGRESS

      public static final LibcErrorCodes EINPROGRESS
      Operation now in progress.
    • ESTALE

      public static final LibcErrorCodes ESTALE
      Stale file handle.
    • EUCLEAN

      public static final LibcErrorCodes EUCLEAN
      Structure needs cleaning.
    • ENOTNAM

      public static final LibcErrorCodes ENOTNAM
      Not a XENIX named type file.
    • ENAVAIL

      public static final LibcErrorCodes ENAVAIL
      No XENIX semaphores available.
    • EISNAM

      public static final LibcErrorCodes EISNAM
      Is a named type file.
    • EREMOTEIO

      public static final LibcErrorCodes EREMOTEIO
      Remote I/O error.
    • EDQUOT

      public static final LibcErrorCodes EDQUOT
      Quota exceeded.
    • ENOMEDIUM

      public static final LibcErrorCodes ENOMEDIUM
      No medium found.
    • EMEDIUMTYPE

      public static final LibcErrorCodes EMEDIUMTYPE
      Wrong medium type.
    • ECANCELED

      public static final LibcErrorCodes ECANCELED
      Operation Canceled.
    • ENOKEY

      public static final LibcErrorCodes ENOKEY
      Required key not available.
    • EKEYEXPIRED

      public static final LibcErrorCodes EKEYEXPIRED
      Key has expired.
    • EKEYREVOKED

      public static final LibcErrorCodes EKEYREVOKED
      Key has been revoked.
    • EKEYREJECTED

      public static final LibcErrorCodes EKEYREJECTED
      Key was rejected by service.
    • EOWNERDEAD

      public static final LibcErrorCodes EOWNERDEAD
      Owner died.
    • ENOTRECOVERABLE

      public static final LibcErrorCodes ENOTRECOVERABLE
      State not recoverable.
    • ERFKILL

      public static final LibcErrorCodes ERFKILL
      Operation not possible due to RF-kill.
    • EHWPOISON

      public static final LibcErrorCodes EHWPOISON
      Memory page has hardware error.
  • Method Details

    • values

      public static LibcErrorCodes[] 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 LibcErrorCodes 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
    • getErrorCode

      public int getErrorCode()
    • errorCodeToEnum

      public static LibcErrorCodes errorCodeToEnum(int _code)
      Converts an errorCode to the enum value. If code is unknown, null is returned. If the code is ambiguous (e.g. EAGAIN/EWOULDBLOCK, EDEADLOCK/EDEADLK) the first match will be returned.
      Parameters:
      _code - error code
      Returns:
      enum or null if code unknown