def __init__(self):
        """Create an exception based on the value of errno"""
        self.errno = self._error().contents.value
        RuntimeError.__init__(self, self.errno, self._strerror(self.errno))
Create an exception based on the value of errno
recipes/Python/577655_POSIX_Semaphore_FreeBSD/recipe-577655.py