package core

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = Unix.error =
  1. | E2BIG
    (*

    Argument list too long

    *)
  2. | EACCES
    (*

    Permission denied

    *)
  3. | EAGAIN
    (*

    Resource temporarily unavailable; try again

    *)
  4. | EBADF
    (*

    Bad file descriptor

    *)
  5. | EBUSY
    (*

    Resource unavailable

    *)
  6. | ECHILD
    (*

    No child process

    *)
  7. | EDEADLK
    (*

    Resource deadlock would occur

    *)
  8. | EDOM
    (*

    Domain error for math functions, etc.

    *)
  9. | EEXIST
    (*

    File exists

    *)
  10. | EFAULT
    (*

    Bad address

    *)
  11. | EFBIG
    (*

    File too large

    *)
  12. | EINTR
    (*

    Function interrupted by signal

    *)
  13. | EINVAL
    (*

    Invalid argument

    *)
  14. | EIO
    (*

    Hardware I/O error

    *)
  15. | EISDIR
    (*

    Is a directory

    *)
  16. | EMFILE
    (*

    Too many open files by the process

    *)
  17. | ENAMETOOLONG
    (*

    Filename too long

    *)
  18. | ENFILE
    (*

    Too many open files in the system

    *)
  19. | ENODEV
    (*

    No such device

    *)
  20. | ENOENT
    (*

    No such file or directory

    *)
  21. | ENOEXEC
    (*

    Not an executable file

    *)
  22. | ENOLCK
    (*

    No locks available

    *)
  23. | ENOMEM
    (*

    Not enough memory

    *)
  24. | ENOSPC
    (*

    No space left on device

    *)
  25. | ENOSYS
    (*

    Function not supported

    *)
  26. | ENOTDIR
    (*

    Not a directory

    *)
  27. | ENOTEMPTY
    (*

    Directory not empty

    *)
  28. | ENOTTY
    (*

    Inappropriate I/O control operation

    *)
  29. | ENXIO
    (*

    No such device or address

    *)
  30. | EPERM
    (*

    Operation not permitted

    *)
  31. | EPIPE
    (*

    Broken pipe

    *)
  32. | ERANGE
    (*

    Result too large

    *)
  33. | EROFS
    (*

    Read-only file system

    *)
  34. | ESPIPE
    (*

    Invalid seek e.g. on a pipe

    *)
  35. | ESRCH
    (*

    No such process

    *)
  36. | EXDEV
    (*

    Invalid link

    *)
  37. | EWOULDBLOCK
    (*

    Operation would block

    *)
  38. | EINPROGRESS
    (*

    Operation now in progress

    *)
  39. | EALREADY
    (*

    Operation already in progress

    *)
  40. | ENOTSOCK
    (*

    Socket operation on non-socket

    *)
  41. | EDESTADDRREQ
    (*

    Destination address required

    *)
  42. | EMSGSIZE
    (*

    Message too long

    *)
  43. | EPROTOTYPE
    (*

    Protocol wrong type for socket

    *)
  44. | ENOPROTOOPT
    (*

    Protocol not available

    *)
  45. | EPROTONOSUPPORT
    (*

    Protocol not supported

    *)
  46. | ESOCKTNOSUPPORT
    (*

    Socket type not supported

    *)
  47. | EOPNOTSUPP
    (*

    Operation not supported on socket

    *)
  48. | EPFNOSUPPORT
    (*

    Protocol family not supported

    *)
  49. | EAFNOSUPPORT
    (*

    Address family not supported by protocol family

    *)
  50. | EADDRINUSE
    (*

    Address already in use

    *)
  51. | EADDRNOTAVAIL
    (*

    Can't assign requested address

    *)
  52. | ENETDOWN
    (*

    Network is down

    *)
  53. | ENETUNREACH
    (*

    Network is unreachable

    *)
  54. | ENETRESET
    (*

    Network dropped connection on reset

    *)
  55. | ECONNABORTED
    (*

    Software caused connection abort

    *)
  56. | ECONNRESET
    (*

    Connection reset by peer

    *)
  57. | ENOBUFS
    (*

    No buffer space available

    *)
  58. | EISCONN
    (*

    Socket is already connected

    *)
  59. | ENOTCONN
    (*

    Socket is not connected

    *)
  60. | ESHUTDOWN
    (*

    Can't send after socket shutdown

    *)
  61. | ETOOMANYREFS
    (*

    Too many references: can't splice

    *)
  62. | ETIMEDOUT
    (*

    Connection timed out

    *)
  63. | ECONNREFUSED
    (*

    Connection refused

    *)
  64. | EHOSTDOWN
    (*

    Host is down

    *)
  65. | EHOSTUNREACH
    (*

    No route to host

    *)
  66. | ELOOP
    (*

    Too many levels of symbolic links

    *)
  67. | EOVERFLOW
    (*

    File size or position not representable

    *)
  68. | EUNKNOWNERR of int
    (*

    Unknown error

    *)

The type of error codes. Errors defined in the POSIX standard and additional errors, mostly BSD. All other errors are mapped to EUNKNOWNERR.

include sig ... end
val t_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val of_system_int : errno:int -> t
val message : t -> string

Return a string describing the given error code.

OCaml

Innovation. Community. Security.