HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/thread-self/root/lib/python3/dist-packages/twisted/internet/__pycache__/error.cpython-38.pyc
U


W[e1�(@s�dZddlmZmZddlZddlmZddlmZGdd�de	�Z
Gdd	�d	e
�ZGd
d�de	�ZGdd
�d
e	�Z
Gdd�de�ZGdd�de	�ZGdd�de	�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�de�ZGd d!�d!e�ZGd"d#�d#e�ZGd$d%�d%e�ZGd&d'�d'e�ZGd(d)�d)e	�ZGd*d+�d+e�ZGd,d-�d-e	�ZzBddlZej eej!eej"eiZ#e$ed.��r�ee#ej%<ee#ej&<Wne'k
�r�iZ#YnXd/d0�Z(Gd1d2�d2e	�Z)Gd3d4�d4e)�Z*Gd5d6�d6e*�Z+Gd7d8�d8e)�Z,Gd9d:�d:e*�Z-Gd;d<�d<e*�Z.Gd=d>�d>e/�Z0Gd?d@�d@e/�Z1GdAdB�dBe2�Z3e�4edCdDdd�dEe5dB�GdFdG�dGe,�Z6GdHdI�dIe*�Z7GdJdK�dKe	�Z8GdLdM�dMe9�Z:GdNdO�dOe9�Z;GdPdQ�dQe9�Z<GdRdS�dSe9�Z=GdTdU�dUe9�Z>GdVdW�dWe?�Z@GdXdY�dYe	�ZAGdZd[�d[e	�ZBGd\d]�d]e	�ZCGd^d_�d_e	�ZDGd`da�dae	�ZEGdbdc�dce/�ZFdd	dd
dddddddddd!d#d%d'd)d+d-d0d2d4d8d<d>d@dBdGdIdKdMdOdQdUdWdYd]d_dcg(ZGdS)dz<
Exceptions and errors for use in twisted.internet modules.
�)�division�absolute_importN)�	deprecate)�Versionc@seZdZdZdd�ZdS)�	BindErrorz)An error occurred binding to an interfacecCs,|j}|jr d|d�|j�f}d|}|S�N�%s: %s� �%s.��__doc__�args�join��self�s�r�8/usr/lib/python3/dist-packages/twisted/internet/error.py�__str__s
zBindError.__str__N��__name__�
__module__�__qualname__rrrrrrrsrc@s eZdZdZdd�Zdd�ZdS)�CannotListenErrora2
    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}
    cCs&t�||||�||_||_||_dS�N)r�__init__�	interface�port�socketError)rrrrrrrr'szCannotListenError.__init__cCs|jpd}d||j|jfS)N�anyzCouldn't listen on %s:%s: %s.)rrr)rZifacerrrr-s
�zCannotListenError.__str__N�rrrrrrrrrrrs	rc@seZdZdZdS)�MulticastJoinErrorz6
    An attempt to join a multicast group failed.
    N�rrrrrrrrr!4sr!c@seZdZdZdd�ZdS)�MessageLengthErrorzMessage is too long to sendcCs,|j}|jr d|d�|j�f}d|}|Srrrrrrr>s
zMessageLengthError.__str__Nrrrrrr#;sr#c@seZdZdZdd�ZdS)�DNSLookupErrorzDNS lookup failedcCs,|j}|jr d|d�|j�f}d|}|SrrrrrrrJs
zDNSLookupError.__str__Nrrrrrr$Gsr$c@seZdZdZdS)�ConnectInProgressErrorz3A connect operation was started and isn't done yet.Nr"rrrrr%Ssr%c@s"eZdZdZddd�Zdd�ZdS)	�ConnectErrorz"An error occurred while connectingN�cCs||_t�||�dSr)�osError�	Exceptionr)rr(�stringrrrr\szConnectError.__init__cCsJ|jp|jj}|jr"d||jf}|jdr>d||jdf}d|}|S)Nrrr
)r�	__class__rr(r
rrrrr`s
zConnectError.__str__)Nr'r rrrrr&Ys
r&c@seZdZdZdS)�ConnectBindErrorz
Couldn't bindNr"rrrrr,ksr,c@seZdZdZdS)�UnknownHostErrorzHostname couldn't be looked upNr"rrrrr-psr-c@seZdZdZdS)�NoRouteErrorzNo route to hostNr"rrrrr.usr.c@seZdZdZdS)�ConnectionRefusedErrorz$Connection was refused by other sideNr"rrrrr/zsr/c@seZdZdZdS)�TCPTimedOutErrorzTCP connection timed outNr"rrrrr0sr0c@seZdZdZdS)�BadFileErrorz$File used for UNIX socket is no goodNr"rrrrr1�sr1c@seZdZdZdS)�ServiceNameUnknownErrorz%Service name given as port is unknownNr"rrrrr2�sr2c@seZdZdZdS)�	UserErrorzUser aborted connectionNr"rrrrr3�sr3c@seZdZdZdS)�TimeoutErrorz&User timeout caused connection failureNr"rrrrr4�sr4c@seZdZdZdS)�SSLErrorzAn SSL error occurredNr"rrrrr5�sr5c@seZdZdZdS)�VerifyErrorz?Could not verify something that was supposed to be signed.
    Nr"rrrrr6�sr6c@seZdZdZdS)�PeerVerifyErrorz(The peer rejected our verify error.
    Nr"rrrrr7�sr7c@seZdZdZdS)�CertificateErrorzF
    We did not find a certificate where we expected to find one.
    Nr"rrrrr8�sr8�WSAECONNREFUSEDcCstt|t�r|j}n|}z|\}}Wntk
r@t|d�YSXttd�r^t|tj�r^t}nt	�
|t�}|||�S)z2Given a socket exception, return connection error.)r*�gaierror)�
isinstancer)r
�
ValueErrorr&�hasattr�socketr:r-�errnoMapping�get)�er
Znumberr*�klassrrr�getConnectError�s
rCc@seZdZdZdS)�ConnectionClosedz@
    Connection was closed, whether cleanly or non-cleanly.
    Nr"rrrrrD�srDc@seZdZdZdd�ZdS)�ConnectionLostz<Connection to the other side was lost in a non-clean fashioncCs8|j����d}|jr,d|d�|j�f}d|}|S)Nrrr	r
)r�strip�
splitlinesr
rrrrrr�s
zConnectionLost.__str__NrrrrrrE�srEc@seZdZdZdS)�ConnectionAbortedz�
    Connection was aborted locally, using
    L{twisted.internet.interfaces.ITCPTransport.abortConnection}.

    @since: 11.1
    Nr"rrrrrH�srHc@seZdZdZdd�ZdS)�ConnectionDonezConnection was closed cleanlycCs,|j}|jr d|d�|j�f}d|}|Srrrrrrr�s
zConnectionDone.__str__NrrrrrrI�srIc@seZdZdZdS)�FileDescriptorOverrunaw
    A mis-use of L{IUNIXTransport.sendFileDescriptor} caused the connection to
    be closed.

    Each file descriptor sent using C{sendFileDescriptor} must be associated
    with at least one byte sent using L{ITransport.write}.  If at any point
    fewer bytes have been written than file descriptors have been sent, the
    connection is closed with this exception.
    Nr"rrrrrJ�srJc@seZdZdZdS)�ConnectionFdescWentAwayZUhNr"rrrrrK
srKc@seZdZdZdd�ZdS)�
AlreadyCalledz'Tried to cancel an already-called eventcCs,|j}|jr d|d�|j�f}d|}|Srrrrrrrs
zAlreadyCalled.__str__NrrrrrrLsrLc@seZdZdZdd�ZdS)�AlreadyCancelledz*Tried to cancel an already-cancelled eventcCs,|j}|jr d|d�|j�f}d|}|Srrrrrrrs
zAlreadyCancelled.__str__NrrrrrrMsrMc@seZdZdZdZdS)�PotentialZombieWarningz�
    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.
    z�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.N)rrrrZMESSAGErrrrrN's�rNZTwisted�
z4There is no longer any potential for zombie process.c@seZdZdZdd�ZdS)�ProcessDonez+A process has ended without apparent errorscCs"t�|d�d|_d|_||_dS)Nz!process finished with exit code 0r)r)r�exitCode�signal�status)rrSrrrrAszProcessDone.__init__N�rrrrrrrrrrP>srPc@seZdZdZddd�ZdS)�ProcessTerminatedz�
    A process has ended with a probable error condition

    @ivar exitCode: See L{__init__}
    @ivar signal: See L{__init__}
    @ivar status: See L{__init__}
    NcCsN||_||_||_d}|dk	r*|d|}|dk	r>|d|}t�||�dS)a�
        @param exitCode: The exit status of the process.  This is roughly like
            the value you might pass to L{os.exit}.  This is L{None} if the
            process exited due to a signal.
        @type exitCode: L{int} or L{None}

        @param signal: The exit signal of the process.  This is L{None} if the
            process did not exit due to a signal.
        @type signal: L{int} or L{None}

        @param status: The exit code of the process.  This is a platform
            specific combination of the exit code and the exit signal.  See
            L{os.WIFEXITED} and related functions.
        @type status: L{int}
        z
process endedNz with exit code %sz
 by signal %s)rQrRrSr)r)rrQrRrSrrrrrQszProcessTerminated.__init__)NNNrTrrrrrUIsrUc@seZdZdZdS)�ProcessExitedAlreadyzd
    The process has already exited and the operation requested can no longer
    be performed.
    Nr"rrrrrVksrVc@seZdZdZdd�ZdS)�NotConnectingErrorzEThe Connector was not connecting when it was asked to stop connectingcCs,|j}|jr d|d�|j�f}d|}|Srrrrrrrvs
zNotConnectingError.__str__NrrrrrrWssrWc@seZdZdZdd�ZdS)�NotListeningErrorz>The Port was not listening when it was asked to stop listeningcCs,|j}|jr d|d�|j�f}d|}|Srrrrrrr�s
zNotListeningError.__str__NrrrrrrXsrXc@seZdZdZdS)�ReactorNotRunningzJ
    Error raised when trying to stop a reactor which is not running.
    Nr"rrrrrY�srYc@seZdZdZdS)�ReactorNotRestartablezF
    Error raised when trying to run a reactor which was stopped.
    Nr"rrrrrZ�srZc@seZdZdZdS)�ReactorAlreadyRunningzG
    Error raised when trying to start the reactor multiple times.
    Nr"rrrrr[�sr[c@seZdZdZdS)�ReactorAlreadyInstalledErrorzE
    Could not install reactor because one is already installed.
    Nr"rrrrr\�sr\c@seZdZdZdd�ZdS)�ConnectingCancelledErrorz�
    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}.
    cCst�||�||_dS)z�
        @param address: The L{IAddress} that is the destination of the
            L{IStreamClientEndpoint} that was cancelled.
        N)r)r�address)rr^rrrr�sz!ConnectingCancelledError.__init__NrTrrrrr]�sr]c@seZdZdZdS)�
NoProtocolz�
    An C{Exception} that will be raised when the factory given to a
    L{IStreamClientEndpoint} returns L{None} from C{buildProtocol}.
    Nr"rrrrr_�sr_c@seZdZdZdS)�UnsupportedAddressFamilyz�
    An attempt was made to use a socket with an address family (eg I{AF_INET},
    I{AF_INET6}, etc) which is not supported by the reactor.
    Nr"rrrrr`�sr`c@seZdZdZdS)�UnsupportedSocketTypez�
    An attempt was made to use a socket of a type (eg I{SOCK_STREAM},
    I{SOCK_DGRAM}, etc) which is not supported by the reactor.
    Nr"rrrrra�srac@seZdZdZdS)�AlreadyListenedzd
    An attempt was made to listen on a file descriptor which can only be
    listened on once.
    Nr"rrrrrb�srbc@seZdZdZdd�ZdS)�InvalidAddressErrorz�
    An invalid address was specified (i.e. neither IPv4 or IPv6, or expected
    one and got the other).

    @ivar address: See L{__init__}
    @ivar message: See L{__init__}
    cCs||_||_dS)z�
        @param address: The address that was provided.
        @type address: L{bytes}
        @param message: A native string of additional information provided by
            the calling context.
        @type address: L{str}
        N)r^�message)rr^rdrrrr�szInvalidAddressError.__init__NrTrrrrrc�src)HrZ
__future__rrr>Ztwisted.pythonrZincrementalrr)rrr!r#�IOErrorr$r%r&r,r-r.r/r0r1r2r3r4r5r6r7r8�errnoZENETUNREACHZECONNREFUSEDZ	ETIMEDOUTr?r=r9ZWSAENETUNREACH�ImportErrorrCrDrErHrIrJrKr<rLrM�WarningrNZdeprecatedModuleAttributerrPrUrV�RuntimeErrorrWrXrYrZr[�AssertionErrorr\r]r_r`rarbrc�__all__rrrr�<module>s��



�"�