Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/error.pyc

ó
H!¯Nc%@s—dZddlZddlmZddlmZdefd„ƒYZdefd„ƒYZd	efd
„ƒYZ	defd„ƒYZ
d
efd„ƒYZdefd„ƒYZ
defd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd „ƒYZd!efd"„ƒYZd#efd$„ƒYZd%efd&„ƒYZd'efd(„ƒYZd)efd*„ƒYZd+efd,„ƒYZy`ddlZieej6eej6eej6Z e!ed-ƒrIee ej"<ee ej#<nWne$k
rciZ nXd.„Z%d/efd0„ƒYZ&d1e&fd2„ƒYZ'd3e'fd4„ƒYZ(d5e&fd6„ƒYZ)d7e'fd8„ƒYZ*d9e+fd:„ƒYZ,d;e+fd<„ƒYZ-d=e.fd>„ƒYZ/ej0ed?d@dAdAƒdBe1d=ƒdCe)fdD„ƒYZ2dEe'fdF„ƒYZ3dGefdH„ƒYZ4dIe5fdJ„ƒYZ6dKe5fdL„ƒYZ7dMe5fdN„ƒYZ8dOe5fdP„ƒYZ9dQe5fdR„ƒYZ:dSe;fdT„ƒYZ<dUefdV„ƒYZ=ddd	dd
dddddddddd!d#d%d'd)d+dWd/d1d5d7d9d;d=dCdEdGdIdKdMdQdSdUg%Z>dS(Xs<
Exceptions and errors for use in twisted.internet modules.
iÿÿÿÿN(t	deprecate(tVersiont	BindErrorcBseZdZd„ZRS(s)An error occurred binding to an interfacecCs?|j}|jr1d|dj|jƒf}nd|}|S(Ns%s: %st s%s.(t__doc__targstjoin(tselfts((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyt__str__s
		
(t__name__t
__module__RR	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRstCannotListenErrorcBs eZdZd„Zd„ZRS(s2
    This gets raised by a call to startListening, when the object cannotstart
    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}
    cCs5tj||||ƒ||_||_||_dS(N(Rt__init__t	interfacetporttsocketError(RRRR((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR
%s		cCs&|jpd}d||j|jfS(NtanysCouldn't listen on %s:%s: %s.(RRR(Rtiface((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR	+s(R
RRR
R	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRs		tMulticastJoinErrorcBseZdZRS(s6
    An attempt to join a multicast group failed.
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR2stMessageLengthErrorcBseZdZd„ZRS(sMessage is too long to sendcCs?|j}|jr1d|dj|jƒf}nd|}|S(Ns%s: %sRs%s.(RRR(RR((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR	<s
		
(R
RRR	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR9stDNSLookupErrorcBseZdZd„ZRS(sDNS lookup failedcCs?|j}|jr1d|dj|jƒf}nd|}|S(Ns%s: %sRs%s.(RRR(RR((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR	Hs
		
(R
RRR	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyREstConnectInProgressErrorcBseZdZRS(s3A connect operation was started and isn't done yet.(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRQstConnectErrorcBs&eZdZddd„Zd„ZRS(s"An error occurred while connectingtcCs||_tj||ƒdS(N(tosErrort	ExceptionR
(RRtstring((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR
Zs	cCsi|jp|jj}|jr4d||jf}n|jdr[d||jdf}nd|}|S(Ns%s: %sis%s.(Rt	__class__R
RR(RR((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR	^s	

N(R
RRtNoneR
R	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRWstConnectBindErrorcBseZdZRS(s
Couldn't bind(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRistUnknownHostErrorcBseZdZRS(sHostname couldn't be looked up(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRnstNoRouteErrorcBseZdZRS(sNo route to host(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR sstConnectionRefusedErrorcBseZdZRS(s$Connection was refused by other side(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR!xstTCPTimedOutErrorcBseZdZRS(sTCP connection timed out(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR"}stBadFileErrorcBseZdZRS(s$File used for UNIX socket is no good(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR#‚stServiceNameUnknownErrorcBseZdZRS(s%Service name given as port is unknown(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR$‡st	UserErrorcBseZdZRS(sUser aborted connection(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR%ŒstTimeoutErrorcBseZdZRS(s&User timeout caused connection failure(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR&‘stSSLErrorcBseZdZRS(sAn SSL error occurred(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR'–stVerifyErrorcBseZdZRS(s?Could not verify something that was supposed to be signed.
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR(›stPeerVerifyErrorcBseZdZRS(s(The peer rejected our verify error.
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR)¡stCertificateErrorcBseZdZRS(sF
    We did not find a certificate where we expected to find one.
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR*§stWSAECONNREFUSEDcCswy|\}}Wntk
r-td|ƒSXttdƒrXt|tjƒrXt}ntj|tƒ}|||ƒS(s2Given a socket exception, return connection error.Rtgaierror(	t
ValueErrorRthasattrtsockett
isinstanceR,RterrnoMappingtget(tetnumberRtklass((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pytgetConnectError½s
!	tConnectionClosedcBseZdZRS(s@
    Connection was closed, whether cleanly or non-cleanly.
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR7ÍstConnectionLostcBseZdZd„ZRS(s<Connection to the other side was lost in a non-clean fashioncCs?|j}|jr1d|dj|jƒf}nd|}|S(Ns%s: %sRs%s.(RRR(RR((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR	×s
		
(R
RRR	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR8ÔstConnectionAbortedcBseZdZRS(sƒ
    Connection was aborted locally, using
    L{twisted.internet.interfaces.ITCPTransport.abortConnection}.

    @since: 11.1
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR9àstConnectionDonecBseZdZd„ZRS(sConnection was closed cleanlycCs?|j}|jr1d|dj|jƒf}nd|}|S(Ns%s: %sRs%s.(RRR(RR((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR	ís
		
(R
RRR	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR:êstConnectionFdescWentAwaycBseZdZRS(tUh(R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR;öst
AlreadyCalledcBseZdZd„ZRS(s'Tried to cancel an already-called eventcCs?|j}|jr1d|dj|jƒf}nd|}|S(Ns%s: %sRs%s.(RRR(RR((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR	þs
		
(R
RRR	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR=ûstAlreadyCancelledcBseZdZd„ZRS(s*Tried to cancel an already-cancelled eventcCs?|j}|jr1d|dj|jƒf}nd|}|S(Ns%s: %sRs%s.(RRR(RR((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR	
s
		
(R
RRR	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR>stPotentialZombieWarningcBseZdZdZRS(s¿
    Emitted when L{IReactorProcess.spawnProcess} is called in a way which may
    result in termination of the created child process not being reported.

    Deprecated in Twisted 10.0.
    sûspawnProcess called, but the SIGCHLD handler is not installed. This probably means you have not yet called reactor.run, or called reactor.run(installSignalHandler=0). You will probably never see this process finish, and it may become a zombie process.(R
RRtMESSAGE(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR?stTwistedi
is4There is no longer any potential for zombie process.tProcessDonecBseZdZd„ZRS(s+A process has ended without apparent errorscCs/tj|dƒd|_d|_||_dS(Ns!process finished with exit code 0i(RR
texitCodeRtsignaltstatus(RRE((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR
-s		(R
RRR
(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRB*stProcessTerminatedcBs eZdZdddd„ZRS(s3A process has ended with a probable error conditioncCso||_||_||_d}|dk	r>|d|}n|dk	r[|d|}ntj||ƒdS(Ns
process endeds with exit code %ss
 by signal %s(RCRDRERRR
(RRCRDRER((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR
8s			N(R
RRRR
(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRF5stProcessExitedAlreadycBseZdZRS(sd
    The process has already exited and the operation requested can no longer
    be performed.
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRGCstNotConnectingErrorcBseZdZd„ZRS(sEThe Connector was not connecting when it was asked to stop connectingcCs?|j}|jr1d|dj|jƒf}nd|}|S(Ns%s: %sRs%s.(RRR(RR((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR	Ns
		
(R
RRR	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRHKstNotListeningErrorcBseZdZd„ZRS(s>The Port was not listening when it was asked to stop listeningcCs?|j}|jr1d|dj|jƒf}nd|}|S(Ns%s: %sRs%s.(RRR(RR((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR	Zs
		
(R
RRR	(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRIWstReactorNotRunningcBseZdZRS(sJ
    Error raised when trying to stop a reactor which is not running.
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRJcstReactorNotRestartablecBseZdZRS(sF
    Error raised when trying to run a reactor which was stopped.
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRKistReactorAlreadyRunningcBseZdZRS(sG
    Error raised when trying to start the reactor multiple times.
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRLpstReactorAlreadyInstalledErrorcBseZdZRS(sE
    Could not install reactor because one is already installed.
    (R
RR(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRMvstConnectingCancelledErrorcBseZdZd„ZRS(sâ
    An C{Exception} that will be raised when an L{IStreamClientEndpoint} is
    cancelled before it connects.

    @ivar address: The L{IAddress} that is the destination of the
        cancelled L{IStreamClientEndpoint}.
    cCstj||ƒ||_dS(s‰
        @param address: The L{IAddress} that is the destination of the
            L{IStreamClientEndpoint} that was cancelled.
        N(RR
taddress(RRO((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyR
†s(R
RRR
(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyRN}sR6(?RR/ttwisted.pythonRttwisted.python.versionsRRRRRRtIOErrorRRRRRR R!R"R#R$R%R&R'R(R)R*terrnotENETUNREACHtECONNREFUSEDt	ETIMEDOUTR1R.R+tWSAENETUNREACHtImportErrorR6R7R8R9R:R;R-R=R>tWarningR?tdeprecatedModuleAttributeR
RBRFRGtRuntimeErrorRHRIRJRKRLtAssertionErrorRMRNt__all__(((s:/usr/lib/python2.7/dist-packages/twisted/internet/error.pyt<module>sŒ