mò Ž ÿDc@s1dZdkZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd „ƒYZd efd „ƒYZd efd „ƒYZ defd„ƒYZ de fd„ƒYZ de fd„ƒYZ de fd„ƒYZ de fd„ƒYZde fd„ƒYZde fd„ƒYZde fd„ƒYZde fd„ƒYZd efd!„ƒYZd"e fd#„ƒYZd$efd%„ƒYZd&efd'„ƒYZd(efd)„ƒYZyedkZheie <eie<eiee+fd?„ƒYZ-dS(@s›Exceptions and errors for use in twisted.internet modules. API Stability: semi-stable Maintainer: U{Itamar Shtull-Trauring} Nt BindErrorcBstZdZd„ZRS(s)An error occurred binding to an interfacecCsA|i}|io d|di|iƒf}nd|}|S(Ns%s: %st s%s.(tselft__doc__tstargstjoin(RR((tn/home/radix/Projects/Twisted/branches/releases/twisted-core-2.5.x-2329-2/Twisted.exp/twisted/internet/error.pyt__str__s     (t__name__t __module__RR(((RRs tCannotListenErrorcBs tZdZd„Zd„ZRS(s*This gets raised by a call to startListening, when the object cannot start listening. @ivar interface: the interface I tried to listen on @ivar port: the port I tried to listen on @ivar socketError: the exception I got when I tried to listen @type socketError: L{socket.error} cCs5ti||||ƒ||_||_||_dS(N(Rt__init__Rt interfacetportt socketError(RR RR((RR !s  cCs'|ipd}d||i|ifS(NtanysCouldn't listen on %s:%s: %s.(RR tifaceRR(RR((RR's(R R RR R(((RR s  tMulticastJoinErrorcBstZdZRS(s6 An attempt to join a multicast group failed. (R R R(((RR-s tMessageLengthErrorcBstZdZd„ZRS(sMessage is too long to sendcCsA|i}|io d|di|iƒf}nd|}|S(Ns%s: %sRs%s.(RRRRR(RR((RR6s     (R R RR(((RR3s tDNSLookupErrorcBstZdZd„ZRS(sDNS lookup failedcCsA|i}|io d|di|iƒf}nd|}|S(Ns%s: %sRs%s.(RRRRR(RR((RRAs     (R R RR(((RR>s tConnectInProgressErrorcBstZdZRS(s3A connect operation was started and isn't done yet.(R R R(((RRIs t ConnectErrorcBs&tZdZedd„Zd„ZRS(s"An error occurred while connectingtcCs||_ti||ƒdS(N(tosErrorRt ExceptionR tstring(RRR((RR Rs cCsh|ip |ii}|iod||if}n|dod||df}nd|}|S(Ns%s: %sis%s.(RRt __class__R RR(RR((RRVs   (R R RtNoneR R(((RROs tConnectBindErrorcBstZdZRS(s Couldn't bind(R R R(((RR`s tUnknownHostErrorcBstZdZRS(sHostname couldn't be looked up(R R R(((RRds t NoRouteErrorcBstZdZRS(sNo route to host(R R R(((RRhs tConnectionRefusedErrorcBstZdZRS(s$Connection was refused by other side(R R R(((RR ls tTCPTimedOutErrorcBstZdZRS(sTCP connection timed out(R R R(((RR!ps t BadFileErrorcBstZdZRS(s$File used for UNIX socket is no good(R R R(((RR"ts tServiceNameUnknownErrorcBstZdZRS(s%Service name given as port is unknown(R R R(((RR#xs t UserErrorcBstZdZRS(sUser aborted connection(R R R(((RR$|s t TimeoutErrorcBstZdZRS(s&User timeout caused connection failure(R R R(((RR%€s tSSLErrorcBstZdZRS(sAn SSL error occurred(R R R(((RR&ƒs t VerifyErrorcBstZdZRS(s?Could not verify something that was supposed to be signed. (R R R(((RR'†s tPeerVerifyErrorcBstZdZRS(s(The peer rejected our verify error. (R R R(((RR(Šs tCertificateErrorcBstZdZRS(sF We did not find a certificate where we expected to find one. (R R R(((RR)Žs tWSAECONNREFUSEDcCsy|\}}Wn tj otd|ƒSnXttdƒot|tiƒo t }nt i |tƒ}|||ƒS(s2Given a socket exception, return connection error.RtgaierrorN( tetnumberRt ValueErrorRthasattrtsockett isinstanceR+Rtklasst errnoMappingtget(R,RR-R2((RtgetConnectError s# tConnectionLostcBstZdZd„ZRS(s<Connection to the other side was lost in a non-clean fashioncCsA|i}|io d|di|iƒf}nd|}|S(Ns%s: %sRs%s.(RRRRR(RR((RR²s     (R R RR(((RR6¯s tConnectionDonecBstZdZd„ZRS(sConnection was closed cleanlycCsA|i}|io d|di|iƒf}nd|}|S(Ns%s: %sRs%s.(RRRRR(RR((RR½s     (R R RR(((RR7ºs tConnectionFdescWentAwaycBstZdZRS(tUh(R R R(((RR8Ås t AlreadyCalledcBstZdZd„ZRS(s'Tried to cancel an already-called eventcCsA|i}|io d|di|iƒf}nd|}|S(Ns%s: %sRs%s.(RRRRR(RR((RRÌs     (R R RR(((RR:És tAlreadyCancelledcBstZdZd„ZRS(s*Tried to cancel an already-cancelled eventcCsA|i}|io d|di|iƒf}nd|}|S(Ns%s: %sRs%s.(RRRRR(RR((RR×s     (R R RR(((RR;Ôs t ProcessDonecBstZdZd„ZRS(s+A process has ended without apparent errorscCs/ti|dƒd|_d|_||_dS(Ns!process finished with exit code 0i(RR RtexitCodeRtsignaltstatus(RR?((RR ás  (R R RR (((RR<Þs tProcessTerminatedcBs tZdZeeed„ZRS(s3A process has ended with a probable error conditioncCss||_||_||_d}|dj o|d|}n|dj o|d|}nti||ƒdS(Ns process endeds with exit code %ss by signal %s(R=RR>R?RRRR (RR=R>R?R((RR ës     (R R RRR (((RR@ès tProcessExitedAlreadycBstZdZRS(sXThe process has already excited, and the operation requested can no longer be performed.(R R R(((RRAõs tNotConnectingErrorcBstZdZd„ZRS(sEThe Connector was not connecting when it was asked to stop connectingcCsA|i}|io d|di|iƒf}nd|}|S(Ns%s: %sRs%s.(RRRRR(RR((RRüs     (R R RR(((RRBùs tNotListeningErrorcBstZdZd„ZRS(s>The Port was not listening when it was asked to stop listeningcCsA|i}|io d|di|iƒf}nd|}|S(Ns%s: %sRs%s.(RRRRR(RR((RRs     (R R RR(((RRCs (.RR0RRR RRtIOErrorRRRRRRR R!R"R#R$R%R&R'R(R)terrnot ENETUNREACHt ECONNREFUSEDt ETIMEDOUTR3R/R*tWSAENETUNREACHt ImportErrorR5R6R7R8R.R:R;R<R@RAt RuntimeErrorRBRC("RARRCR@R:R!R7RRERRR)RBR R6R'RRRR%R8R&R;R$R R0R3R(R5RR<RR#R"((Rt? sP     *