Asylo
Classes | Enumerations | Functions
asylo::error Namespace Reference

Classes

class  ErrorSpace
 All implementations of error spaces are derived from this abstract class. More...
 
class  ErrorSpaceImplementationHelper
 An intermediate template class that to help define an ErrorSpace subclass. More...
 
class  GoogleErrorSpace
 The implementation of the ErrorSpace interface for the GoogleError canonical error space. More...
 
class  PosixErrorSpace
 An implementation of the ErrorSpace interface for POSIX error codes. More...
 

Enumerations

enum  PosixError {
  P_E2BIG = E2BIG, P_EACCES = EACCES, P_EADDRINUSE = EADDRINUSE, P_EADDRNOTAVAIL = EADDRNOTAVAIL,
  P_EAFNOSUPPORT = EAFNOSUPPORT, P_EAGAIN = EAGAIN, P_EALREADY = EALREADY, P_EBADF = EBADF,
  P_EBADMSG = EBADMSG, P_EBUSY = EBUSY, P_ECANCELED = ECANCELED, P_ECHILD = ECHILD,
  P_ECONNABORTED = ECONNABORTED, P_ECONNREFUSED = ECONNREFUSED, P_ECONNRESET = ECONNRESET, P_EDEADLK = EDEADLK,
  P_EDESTADDRREQ = EDESTADDRREQ, P_EDOM = EDOM, P_EDQUOT = EDQUOT, P_EEXIST = EEXIST,
  P_EFAULT = EFAULT, P_EFBIG = EFBIG, P_EHOSTUNREACH = EHOSTUNREACH, P_EIDRM = EIDRM,
  P_EILSEQ = EILSEQ, P_EINPROGRESS = EINPROGRESS, P_EINTR = EINTR, P_EINVAL = EINVAL,
  P_EIO = EIO, P_EISCONN = EISCONN, P_EISDIR = EISDIR, P_ELOOP = ELOOP,
  P_EMFILE = EMFILE, P_EMLINK = EMLINK, P_EMSGSIZE = EMSGSIZE, P_EMULTIHOP = EMULTIHOP,
  P_ENAMETOOLONG = ENAMETOOLONG, P_ENETDOWN = ENETDOWN, P_ENETRESET = ENETRESET, P_ENETUNREACH = ENETUNREACH,
  P_ENFILE = ENFILE, P_ENOBUFS = ENOBUFS, P_ENODATA = ENODATA, P_ENODEV = ENODEV,
  P_ENOENT = ENOENT, P_ENOEXEC = ENOEXEC, P_ENOLCK = ENOLCK, P_ENOLINK = ENOLINK,
  P_ENOMEM = ENOMEM, P_ENOMSG = ENOMSG, P_ENOPROTOOPT = ENOPROTOOPT, P_ENOSPC = ENOSPC,
  P_ENOSR = ENOSR, P_ENOSTR = ENOSTR, P_ENOSYS = ENOSYS, P_ENOTCONN = ENOTCONN,
  P_ENOTDIR = ENOTDIR, P_ENOTEMPTY = ENOTEMPTY, P_ENOTRECOVERABLE = ENOTRECOVERABLE, P_ENOTSOCK = ENOTSOCK,
  P_ENOTSUP = ENOTSUP, P_ENOTTY = ENOTTY, P_ENXIO = ENXIO, P_EOVERFLOW = EOVERFLOW,
  P_EOWNERDEAD = EOWNERDEAD, P_EPERM = EPERM, P_EPIPE = EPIPE, P_EPROTO = EPROTO,
  P_EPROTONOSUPPORT = EPROTONOSUPPORT, P_EPROTOTYPE = EPROTOTYPE, P_ERANGE = ERANGE, P_EROFS = EROFS,
  P_ESPIPE = ESPIPE, P_ESRCH = ESRCH, P_ESTALE = ESTALE, P_ETIME = ETIME,
  P_ETIMEDOUT = ETIMEDOUT, P_ETXTBSY = ETXTBSY, P_EXDEV = EXDEV
}
 The enum associated with the POSIX error-space. More...
 

Functions

ErrorSpace const * GetErrorSpace (ErrorSpaceAdlTag<::asylo::error::GoogleError > tag)
 Binds the class GoogleErrorSpace to the #GoogleError enum. More...
 
ErrorSpace const * GetErrorSpace (ErrorSpaceAdlTag< PosixError > tag)
 Binds the PosixErrorSpace class to the PosixError enum. More...
 

Enumeration Type Documentation

◆ PosixError

The enum associated with the POSIX error-space.

To avoid conflict with the macros defined in the <cerrno> system header, all the codes in this enum are prefixed with a "P_".

Enumerator
P_E2BIG 
P_EACCES 
P_EADDRINUSE 
P_EADDRNOTAVAIL 
P_EAFNOSUPPORT 
P_EAGAIN 
P_EALREADY 
P_EBADF 
P_EBADMSG 
P_EBUSY 
P_ECANCELED 
P_ECHILD 
P_ECONNABORTED 
P_ECONNREFUSED 
P_ECONNRESET 
P_EDEADLK 
P_EDESTADDRREQ 
P_EDOM 
P_EDQUOT 
P_EEXIST 
P_EFAULT 
P_EFBIG 
P_EHOSTUNREACH 
P_EIDRM 
P_EILSEQ 
P_EINPROGRESS 
P_EINTR 
P_EINVAL 
P_EIO 
P_EISCONN 
P_EISDIR 
P_ELOOP 
P_EMFILE 
P_EMLINK 
P_EMSGSIZE 
P_EMULTIHOP 
P_ENAMETOOLONG 
P_ENETDOWN 
P_ENETRESET 
P_ENETUNREACH 
P_ENFILE 
P_ENOBUFS 
P_ENODATA 
P_ENODEV 
P_ENOENT 
P_ENOEXEC 
P_ENOLCK 
P_ENOLINK 
P_ENOMEM 
P_ENOMSG 
P_ENOPROTOOPT 
P_ENOSPC 
P_ENOSR 
P_ENOSTR 
P_ENOSYS 
P_ENOTCONN 
P_ENOTDIR 
P_ENOTEMPTY 
P_ENOTRECOVERABLE 
P_ENOTSOCK 
P_ENOTSUP 
P_ENOTTY 
P_ENXIO 
P_EOVERFLOW 
P_EOWNERDEAD 
P_EPERM 
P_EPIPE 
P_EPROTO 
P_EPROTONOSUPPORT 
P_EPROTOTYPE 
P_ERANGE 
P_EROFS 
P_ESPIPE 
P_ESRCH 
P_ESTALE 
P_ETIME 
P_ETIMEDOUT 
P_ETXTBSY 
P_EXDEV 

Function Documentation

◆ GetErrorSpace() [1/2]

ErrorSpace const* asylo::error::GetErrorSpace ( ErrorSpaceAdlTag< PosixError tag)

Binds the PosixErrorSpace class to the PosixError enum.

◆ GetErrorSpace() [2/2]

ErrorSpace const* asylo::error::GetErrorSpace ( ErrorSpaceAdlTag<::asylo::error::GoogleError >  tag)

Binds the class GoogleErrorSpace to the #GoogleError enum.