AbstractSelector.checkErrno

Check the 'errno' global variable from the C standard library and throw an exception with the description of the error.

class AbstractSelector
protected
void
checkErrno
(
string file
,)

Parameters

file string

Name of the source file where the check is being made; you would normally use __FILE__ for this parameter.

line size_t

Line number of the source file where this method was called; you would normally use __LINE__ for this parameter.

  • RegisteredConduitException when the conduit should not be registered but it is (EEXIST).
  • UnregisteredConduitException when the conduit should be registered but it isn't (ENOENT).
  • InterruptedSystemCallException when a system call has been interrupted (EINTR).
  • OutOfMemoryException if a memory allocation fails (ENOMEM).
  • SelectorException for any of the other cases in which errno is not 0.

Meta