Loading src/event/epoll.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -357,8 +357,10 @@ EVENTLOOP: pollptr.WriteEventHandler(i,tid,args); break; default: pollptr.resetEventHandler(i); break; NetException e; e[NetException::Error] << "EventWorker: Request type not kwon!"; pollptr.CloseEventHandler(i,tid,args); throw e; } }catch(NetException& e){ switch(e.getErrorType()){ Loading src/event/kqueue.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -359,8 +359,10 @@ EVENTLOOP: pollptr.WriteEventHandler(i,tid,args); break; default: pollptr.resetEventHandler(i); break; NetException e; e[NetException::Error] << "EventWorker: Request type not kwon!"; pollptr.CloseEventHandler(i,tid,args); throw e; } }catch(NetException& e){ switch(e.getErrorType()){ Loading @@ -368,6 +370,9 @@ EVENTLOOP: throw e; case NetException::Note: break; case NetException::Close: pollptr.CloseEventHandler(i,tid,args); break; default: std::cerr << e.what() << std::endl; pollptr.CloseEventHandler(i,tid,args); Loading src/exception.h +1 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ namespace netplus { const char* what(); enum Type {Note,Warning,Error,Critical}; enum Type {Note,Warning,Error,Critical,Close}; NetException& append(const char *src); NetException& operator[](int errtype); Loading Loading
src/event/epoll.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -357,8 +357,10 @@ EVENTLOOP: pollptr.WriteEventHandler(i,tid,args); break; default: pollptr.resetEventHandler(i); break; NetException e; e[NetException::Error] << "EventWorker: Request type not kwon!"; pollptr.CloseEventHandler(i,tid,args); throw e; } }catch(NetException& e){ switch(e.getErrorType()){ Loading
src/event/kqueue.cpp +7 −2 Original line number Diff line number Diff line Loading @@ -359,8 +359,10 @@ EVENTLOOP: pollptr.WriteEventHandler(i,tid,args); break; default: pollptr.resetEventHandler(i); break; NetException e; e[NetException::Error] << "EventWorker: Request type not kwon!"; pollptr.CloseEventHandler(i,tid,args); throw e; } }catch(NetException& e){ switch(e.getErrorType()){ Loading @@ -368,6 +370,9 @@ EVENTLOOP: throw e; case NetException::Note: break; case NetException::Close: pollptr.CloseEventHandler(i,tid,args); break; default: std::cerr << e.what() << std::endl; pollptr.CloseEventHandler(i,tid,args); Loading
src/exception.h +1 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,7 @@ namespace netplus { const char* what(); enum Type {Note,Warning,Error,Critical}; enum Type {Note,Warning,Error,Critical,Close}; NetException& append(const char *src); NetException& operator[](int errtype); Loading