@@ -49,16 +49,18 @@ @try { struct epoll_event event; #ifdef HAVE_EPOLL_CREATE1 if ((_epfd = epoll_create1(EPOLL_CLOEXEC)) == -1) - @throw [OFInitializationFailedException exception]; + @throw [OFInitializationFailedException + exceptionWithClass: [self class]]; #else int flags; if ((_epfd = epoll_create(1)) == -1) - @throw [OFInitializationFailedException exception]; + @throw [OFInitializationFailedException + exceptionWithClass: [self class]]; if ((flags = fcntl(_epfd, F_GETFD, 0)) != -1) fcntl(_epfd, F_SETFD, flags | FD_CLOEXEC); #endif @@ -69,11 +71,12 @@ memset(&event, 0, sizeof(event)); event.events = EPOLLIN; event.data.ptr = [OFNull null]; if (epoll_ctl(_epfd, EPOLL_CTL_ADD, _cancelFD[0], &event) == -1) - @throw [OFInitializationFailedException exception]; + @throw [OFInitializationFailedException + exceptionWithClass: [self class]]; } @catch (id e) { [self release]; @throw e; }