how to catch errors in POE::Component::IKC::Server ?
eponymous alias <[email protected]> Tue, 21 Sep 2010 23:19:22 -0700 (PDT)
| Newsgroups | gmane.comp.lang.perl.poe |
|---|---|
| Message-ID | <[email protected]> |
What construction do I use to catch errors from a POE::Component::IKC::Server->spawn() call? Suppose, for instance, that I am trying to build a reliable server that will deal sensibly with various forms of network failure. So suppose, for instance, that the spawn fails because it cannot resolve a host address, or because the port is already in use. How do I arrange the code so it can detect such failures? I see no documented mechanism for such error handling.