class Errno

Defined in:

errno.cr

Constant Summary

EACCES = 13

Cannot allocate memory

EADDRINUSE = 48

Address family not supported by protocol family

EADDRNOTAVAIL = 49

Address already in use

EAFNOSUPPORT = 47

Protocol family not supported

EAGAIN = 35

Result too large

EALREADY = 37

Operation now in progress

EBADF = 9

Exec format error

EBADMSG = 94

Illegal byte sequence

EBUSY = 16

Block device required

ECANCELED = 89

Value too large to be stored in data type

ECHILD = 10

Bad file descriptor

ECONNABORTED = 53

Network dropped connection on reset

ECONNREFUSED = 61

Operation timed out

ECONNRESET = 54

Software caused connection abort

EDEADLK = 11

No child processes

EDESTADDRREQ = 39

Socket operation on non-socket

EDOM = 33

Broken pipe

EDQUOT = 69

Too many users

EEXIST = 17

Device / Resource busy

EFAULT = 14

Permission denied

EFBIG = 27

Text file busy

EHOSTDOWN = 64

File name too long

EHOSTUNREACH = 65

Host is down

EIDRM = 90

Operation canceled

EILSEQ = 92

No message of desired type

EINPROGRESS = 36

Operation would block

EINTR = 4

No such process

EINVAL = 22

Is a directory

EIO = 5

Interrupted system call

EISCONN = 56

No buffer space available

EISDIR = 21

Not a directory

ELOOP = 62

Connection refused

EMFILE = 24

Too many open files in system

EMLINK = 31

Read-only file system

EMSGSIZE = 40

Destination address required

EMULTIHOP = 95

Bad message

ENAMETOOLONG = 63

Too many levels of symbolic links

ENETDOWN = 50

Can't assign requested address

ENETRESET = 52

Network is unreachable

ENETUNREACH = 51

Network is down

ENFILE = 23

Invalid argument

ENOBUFS = 55

Connection reset by peer

ENODATA = 96

Reserved

ENODEV = 19

Cross-device link

ENOENT = 2

Operation not permitted

ENOEXEC = 8

Device not configured

ENOLCK = 77

Too many levels of remote in path

ENOLINK = 97

No message available on STREAM

ENOMEM = 12

Resource deadlock avoided

ENOMSG = 91

Identifier removed

ENOPROTOOPT = 42

Protocol wrong type for socket

ENOSPC = 28

File too large

ENOSR = 98

Reserved

ENOSTR = 99

No STREAM resources

ENOSYS = 78

No locks available

ENOTBLK = 15

Bad address

ENOTCONN = 57

Socket is already connected

ENOTDIR = 20

Operation not supported by device

ENOTEMPTY = 66

No route to host

ENOTRECOVERABLE = 104

Operation not supported on socket

ENOTSOCK = 38

Operation already in progress

ENOTTY = 25

Too many open files

ENXIO = 6

Input/output error

EOPNOTSUPP = 102

STREAM ioctl timeout

EOVERFLOW = 84

Function not implemented

EOWNERDEAD = 105

State not recoverable

EPERM = 1
EPFNOSUPPORT = 46

Socket type not supported

EPIPE = 32

Too many links

EPROTO = 100

Not a STREAM

EPROTONOSUPPORT = 43

Protocol not available

EPROTOTYPE = 41

Message too long

ERANGE = 34

Numerical argument out of domain

EREMOTE = 71

Stale NFS file handle

EROFS = 30

Illegal seek

ESHUTDOWN = 58

Socket is not connected

ESOCKTNOSUPPORT = 44

Protocol not supported

ESPIPE = 29

No space left on device

ESRCH = 3

No such file or directory

ESTALE = 70

Disc quota exceeded

ETIME = 101

Protocol error

ETIMEDOUT = 60

Too many references: can't splice

ETOOMANYREFS = 59

Can't send after socket shutdown

ETXTBSY = 26

Inappropriate ioctl for device

EUSERS = 68

Directory not empty

EWOULDBLOCK = EAGAIN

Resource temporarily unavailable

EXDEV = 18

File exists

Class Method Summary

Instance Method Summary

Instance methods inherited from class Exception

backtrace backtrace, cause cause, inspect_with_backtrace(io : IO)
inspect_with_backtrace
inspect_with_backtrace
, message message, to_s(io : IO) to_s

Class methods inherited from class Exception

new(message = nil : String | Nil, cause = nil : Exception | Nil) new

Instance methods inherited from class Reference

! !, ==(other)
==(other : self)
==
, hash hash, inspect(io : IO) : Nil inspect, nil? nil?, object_id object_id, same?(other : Nil)
same?(other : Reference)
same?
, to_s(io : IO) : Nil to_s

Instance methods inherited from class Object

! !, !=(other) !=, !~(other) !~, ==(other) ==, ===(other) ===, =~(other) =~, class class, clone clone, crystal_type_id crystal_type_id, dup dup, hash hash, inspect
inspect(io : IO)
inspect
, itself itself, not_nil! not_nil!, tap(&block) tap, to_json to_json, to_pretty_json(io : IO)
to_pretty_json
to_pretty_json
, to_s
to_s(io : IO)
to_s
, to_yaml(io : IO)
to_yaml
to_yaml
, try(&block) try

Class methods inherited from class Object

==(other : Class) ==, ===(other) ===, cast(other) : self cast, from_json(string_or_io) from_json, from_yaml(string : String) from_yaml, hash hash, inspect(io) inspect, name : String name, to_s(io) to_s

Class Method Detail

def self.name : String #

[View source]
def self.new(message) #

[View source]

Instance Method Detail

def errno #

[View source]