---
title: POSIXError
framework: foundation
role: symbol
role_heading: Structure
path: foundation/posixerror
---

# POSIXError

Describes an error in the POSIX error domain.

## Declaration

```swift
struct POSIXError
```

## Topics

### Type Aliases

- [POSIXError.Code](foundation/posixerror/code.md)

### Type Properties

- [E2BIG](foundation/posixerror/e2big.md)
- [EACCES](foundation/posixerror/eacces.md)
- [EADDRINUSE](foundation/posixerror/eaddrinuse.md)
- [EADDRNOTAVAIL](foundation/posixerror/eaddrnotavail.md)
- [EAFNOSUPPORT](foundation/posixerror/eafnosupport.md)
- [EAGAIN](foundation/posixerror/eagain.md)
- [EALREADY](foundation/posixerror/ealready.md)
- [EAUTH](foundation/posixerror/eauth.md)
- [EBADARCH](foundation/posixerror/ebadarch.md)
- [EBADEXEC](foundation/posixerror/ebadexec.md)
- [EBADF](foundation/posixerror/ebadf.md)
- [EBADMACHO](foundation/posixerror/ebadmacho.md)
- [EBADMSG](foundation/posixerror/ebadmsg.md)
- [EBADRPC](foundation/posixerror/ebadrpc.md)
- [EBUSY](foundation/posixerror/ebusy.md)
- [ECANCELED](foundation/posixerror/ecanceled.md)
- [ECHILD](foundation/posixerror/echild.md)
- [ECONNABORTED](foundation/posixerror/econnaborted.md)
- [ECONNREFUSED](foundation/posixerror/econnrefused.md)
- [ECONNRESET](foundation/posixerror/econnreset.md)
- [EDEADLK](foundation/posixerror/edeadlk.md)
- [EDESTADDRREQ](foundation/posixerror/edestaddrreq.md)
- [EDEVERR](foundation/posixerror/edeverr.md)
- [EDOM](foundation/posixerror/edom.md)
- [EDQUOT](foundation/posixerror/edquot.md)
- [EEXIST](foundation/posixerror/eexist.md)
- [EFAULT](foundation/posixerror/efault.md)
- [EFBIG](foundation/posixerror/efbig.md)
- [EFTYPE](foundation/posixerror/eftype.md)
- [EHOSTDOWN](foundation/posixerror/ehostdown.md)
- [EHOSTUNREACH](foundation/posixerror/ehostunreach.md)
- [EIDRM](foundation/posixerror/eidrm.md)
- [EILSEQ](foundation/posixerror/eilseq.md)
- [EINPROGRESS](foundation/posixerror/einprogress.md)
- [EINTR](foundation/posixerror/eintr.md)
- [EINVAL](foundation/posixerror/einval.md)
- [EIO](foundation/posixerror/eio.md)
- [EISCONN](foundation/posixerror/eisconn.md)
- [EISDIR](foundation/posixerror/eisdir.md)
- [ELOOP](foundation/posixerror/eloop.md)
- [EMFILE](foundation/posixerror/emfile.md)
- [EMLINK](foundation/posixerror/emlink.md)
- [EMSGSIZE](foundation/posixerror/emsgsize.md)
- [EMULTIHOP](foundation/posixerror/emultihop.md)
- [ENAMETOOLONG](foundation/posixerror/enametoolong.md)
- [ENEEDAUTH](foundation/posixerror/eneedauth.md)
- [ENETDOWN](foundation/posixerror/enetdown.md)
- [ENETRESET](foundation/posixerror/enetreset.md)
- [ENETUNREACH](foundation/posixerror/enetunreach.md)
- [ENFILE](foundation/posixerror/enfile.md)
- [ENOATTR](foundation/posixerror/enoattr.md)
- [ENOBUFS](foundation/posixerror/enobufs.md)
- [ENODATA](foundation/posixerror/enodata.md)
- [ENODEV](foundation/posixerror/enodev.md)
- [ENOENT](foundation/posixerror/enoent.md)
- [ENOEXEC](foundation/posixerror/enoexec.md)
- [ENOLCK](foundation/posixerror/enolck.md)
- [ENOLINK](foundation/posixerror/enolink.md)
- [ENOMEM](foundation/posixerror/enomem.md)
- [ENOMSG](foundation/posixerror/enomsg.md)
- [ENOPOLICY](foundation/posixerror/enopolicy.md)
- [ENOPROTOOPT](foundation/posixerror/enoprotoopt.md)
- [ENOSPC](foundation/posixerror/enospc.md)
- [ENOSR](foundation/posixerror/enosr.md)
- [ENOSTR](foundation/posixerror/enostr.md)
- [ENOSYS](foundation/posixerror/enosys.md)
- [ENOTBLK](foundation/posixerror/enotblk.md)
- [ENOTCONN](foundation/posixerror/enotconn.md)
- [ENOTDIR](foundation/posixerror/enotdir.md)
- [ENOTEMPTY](foundation/posixerror/enotempty.md)
- [ENOTRECOVERABLE](foundation/posixerror/enotrecoverable.md)
- [ENOTSOCK](foundation/posixerror/enotsock.md)
- [ENOTSUP](foundation/posixerror/enotsup.md)
- [ENOTTY](foundation/posixerror/enotty.md)
- [ENXIO](foundation/posixerror/enxio.md)
- [EOVERFLOW](foundation/posixerror/eoverflow.md)
- [EOWNERDEAD](foundation/posixerror/eownerdead.md)
- [EPERM](foundation/posixerror/eperm.md)
- [EPFNOSUPPORT](foundation/posixerror/epfnosupport.md)
- [EPIPE](foundation/posixerror/epipe.md)
- [EPROCLIM](foundation/posixerror/eproclim.md)
- [EPROCUNAVAIL](foundation/posixerror/eprocunavail.md)
- [EPROGMISMATCH](foundation/posixerror/eprogmismatch.md)
- [EPROGUNAVAIL](foundation/posixerror/eprogunavail.md)
- [EPROTO](foundation/posixerror/eproto.md)
- [EPROTONOSUPPORT](foundation/posixerror/eprotonosupport.md)
- [EPROTOTYPE](foundation/posixerror/eprototype.md)
- [EPWROFF](foundation/posixerror/epwroff.md)
- [EQFULL](foundation/posixerror/eqfull.md)
- [ERANGE](foundation/posixerror/erange.md)
- [EREMOTE](foundation/posixerror/eremote.md)
- [EROFS](foundation/posixerror/erofs.md)
- [ERPCMISMATCH](foundation/posixerror/erpcmismatch.md)
- [ESHLIBVERS](foundation/posixerror/eshlibvers.md)
- [ESHUTDOWN](foundation/posixerror/eshutdown.md)
- [ESOCKTNOSUPPORT](foundation/posixerror/esocktnosupport.md)
- [ESPIPE](foundation/posixerror/espipe.md)
- [ESRCH](foundation/posixerror/esrch.md)
- [ESTALE](foundation/posixerror/estale.md)
- [ETIME](foundation/posixerror/etime.md)
- [ETIMEDOUT](foundation/posixerror/etimedout.md)
- [ETOOMANYREFS](foundation/posixerror/etoomanyrefs.md)
- [ETXTBSY](foundation/posixerror/etxtbsy.md)
- [EUSERS](foundation/posixerror/eusers.md)
- [EWOULDBLOCK](foundation/posixerror/ewouldblock.md)
- [EXDEV](foundation/posixerror/exdev.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Error Codes

- [CocoaError](foundation/cocoaerror.md)
- [MachError](foundation/macherror.md)
- [NSError Codes](foundation/1448136-nserror-codes.md)
