ó
‚_Qc        '   @`  s  d  Z  d d l m Z m Z d d l Z d d l m Z d d l m Z d e	 f d „  ƒ  YZ
 d e
 f d	 „  ƒ  YZ d
 e	 f d „  ƒ  YZ d e	 f d „  ƒ  YZ d e f d „  ƒ  YZ d e	 f d „  ƒ  YZ d e	 f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d  e f d! „  ƒ  YZ d" e f d# „  ƒ  YZ d$ e f d% „  ƒ  YZ d& e f d' „  ƒ  YZ d( e	 f d) „  ƒ  YZ d* e f d+ „  ƒ  YZ d, e	 f d- „  ƒ  YZ y` d d l Z i e e j  6e e j! 6e e j" 6Z# e$ e d. ƒ r_e e# e j% <e e# e j& <n  Wn e' k
 ryi  Z# n Xd/ „  Z( d0 e	 f d1 „  ƒ  YZ) d2 e) f d3 „  ƒ  YZ* d4 e* f d5 „  ƒ  YZ+ d6 e) f d7 „  ƒ  YZ, d8 e* f d9 „  ƒ  YZ- d: e* f d; „  ƒ  YZ. d< e/ f d= „  ƒ  YZ0 d> e/ f d? „  ƒ  YZ1 d@ e2 f dA „  ƒ  YZ3 e j4 e dB dC d d ƒ dD e5 d@ ƒ dE e, f dF „  ƒ  YZ6 dG e* f dH „  ƒ  YZ7 dI e	 f dJ „  ƒ  YZ8 dK e9 f dL „  ƒ  YZ: dM e9 f dN „  ƒ  YZ; dO e9 f dP „  ƒ  YZ< dQ e9 f dR „  ƒ  YZ= dS e9 f dT „  ƒ  YZ> dU e? f dV „  ƒ  YZ@ dW e	 f dX „  ƒ  YZA dY e	 f dZ „  ƒ  YZB d[ e	 f d\ „  ƒ  YZC d] e	 f d^ „  ƒ  YZD d d d
 d d d d d d d d d d d  d" d$ d& d( d* d, d_ d0 d2 d6 d: d< d> d@ dE dG dI dK dM dO dS dU dW dY d[ g' ZE d S(`   s<   
Exceptions and errors for use in twisted.internet modules.
i    (   t   divisiont   absolute_importN(   t	   deprecate(   t   Versiont	   BindErrorc           B`  s   e  Z d  Z d „  Z RS(   s)   An error occurred binding to an interfacec         C`  s?   |  j  } |  j r1 d | d j |  j ƒ f } n  d | } | S(   Ns   %s: %st    s   %s.(   t   __doc__t   argst   join(   t   selft   s(    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyt   __str__   s
    		
(   t   __name__t
   __module__R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR      s   t   CannotListenErrorc           B`  s    e  Z d  Z d „  Z d „  Z RS(   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}
    c         C`  s5   t  j |  | | | ƒ | |  _ | |  _ | |  _ d  S(   N(   R   t   __init__t	   interfacet   portt   socketError(   R	   R   R   R   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   '   s    		c         C`  s&   |  j  p d } d | |  j |  j f S(   Nt   anys   Couldn't listen on %s:%s: %s.(   R   R   R   (   R	   t   iface(    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   -   s    (   R   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR      s   		t   MulticastJoinErrorc           B`  s   e  Z d  Z RS(   s6   
    An attempt to join a multicast group failed.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   4   s   t   MessageLengthErrorc           B`  s   e  Z d  Z d „  Z RS(   s   Message is too long to sendc         C`  s?   |  j  } |  j r1 d | d j |  j ƒ f } n  d | } | S(   Ns   %s: %sR   s   %s.(   R   R   R   (   R	   R
   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   >   s
    		
(   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   ;   s   t   DNSLookupErrorc           B`  s   e  Z d  Z d „  Z RS(   s   DNS lookup failedc         C`  s?   |  j  } |  j r1 d | d j |  j ƒ f } n  d | } | S(   Ns   %s: %sR   s   %s.(   R   R   R   (   R	   R
   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   J   s
    		
(   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   G   s   t   ConnectInProgressErrorc           B`  s   e  Z d  Z RS(   s3   A connect operation was started and isn't done yet.(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   S   s   t   ConnectErrorc           B`  s&   e  Z d  Z d d d „ Z d „  Z RS(   s"   An error occurred while connectingt    c         C`  s   | |  _  t j |  | ƒ d  S(   N(   t   osErrort	   ExceptionR   (   R	   R   t   string(    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   \   s    	c         C`  si   |  j  p |  j j } |  j r4 d | |  j f } n  |  j d r[ d | |  j d f } n  d | } | S(   Ns   %s: %si    s   %s.(   R   t	   __class__R   R   R   (   R	   R
   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   `   s    	
N(   R   R   R   t   NoneR   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   Y   s   t   ConnectBindErrorc           B`  s   e  Z d  Z RS(   s   Couldn't bind(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR    k   s   t   UnknownHostErrorc           B`  s   e  Z d  Z RS(   s   Hostname couldn't be looked up(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR!   p   s   t   NoRouteErrorc           B`  s   e  Z d  Z RS(   s   No route to host(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR"   u   s   t   ConnectionRefusedErrorc           B`  s   e  Z d  Z RS(   s$   Connection was refused by other side(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR#   z   s   t   TCPTimedOutErrorc           B`  s   e  Z d  Z RS(   s   TCP connection timed out(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR$      s   t   BadFileErrorc           B`  s   e  Z d  Z RS(   s$   File used for UNIX socket is no good(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR%   „   s   t   ServiceNameUnknownErrorc           B`  s   e  Z d  Z RS(   s%   Service name given as port is unknown(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR&   ‰   s   t	   UserErrorc           B`  s   e  Z d  Z RS(   s   User aborted connection(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR'   Ž   s   t   TimeoutErrorc           B`  s   e  Z d  Z RS(   s&   User timeout caused connection failure(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR(   “   s   t   SSLErrorc           B`  s   e  Z d  Z RS(   s   An SSL error occurred(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR)   ˜   s   t   VerifyErrorc           B`  s   e  Z d  Z RS(   s?   Could not verify something that was supposed to be signed.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR*      s   t   PeerVerifyErrorc           B`  s   e  Z d  Z RS(   s(   The peer rejected our verify error.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR+   £   s   t   CertificateErrorc           B`  s   e  Z d  Z RS(   sF   
    We did not find a certificate where we expected to find one.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR,   ©   s   t   WSAECONNREFUSEDc         C`  s˜   t  |  t ƒ r |  j } n |  } y | \ } } Wn t k
 rN t d |  ƒ SXt t d ƒ ry t  |  t j ƒ ry t } n t	 j
 | t ƒ } | | | ƒ S(   s2   Given a socket exception, return connection error.R   t   gaierror(   t
   isinstanceR   R   t
   ValueErrorR   t   hasattrt   socketR.   R!   t   errnoMappingt   get(   t   eR   t   numberR   t   klass(    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyt   getConnectError¿   s    !	t   ConnectionClosedc           B`  s   e  Z d  Z RS(   s@   
    Connection was closed, whether cleanly or non-cleanly.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR9   Ô   s   t   ConnectionLostc           B`  s   e  Z d  Z d „  Z RS(   s<   Connection to the other side was lost in a non-clean fashionc         C`  sO   |  j  j ƒ  j ƒ  d } |  j rA d | d j |  j ƒ f } n  d | } | S(   Ni    s   %s: %sR   s   %s.(   R   t   stript
   splitlinesR   R   (   R	   R
   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   Þ   s
    	
(   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR:   Û   s   t   ConnectionAbortedc           B`  s   e  Z d  Z RS(   sƒ   
    Connection was aborted locally, using
    L{twisted.internet.interfaces.ITCPTransport.abortConnection}.

    @since: 11.1
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR=   ç   s   t   ConnectionDonec           B`  s   e  Z d  Z d „  Z RS(   s   Connection was closed cleanlyc         C`  s?   |  j  } |  j r1 d | d j |  j ƒ f } n  d | } | S(   Ns   %s: %sR   s   %s.(   R   R   R   (   R	   R
   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   ô   s
    		
(   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR>   ñ   s   t   FileDescriptorOverrunc           B`  s   e  Z d  Z RS(   sw  
    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.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR?   ý   s   	t   ConnectionFdescWentAwayc           B`  s   e  Z d  Z RS(   t   Uh(   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR@   
  s   t   AlreadyCalledc           B`  s   e  Z d  Z d „  Z RS(   s'   Tried to cancel an already-called eventc         C`  s?   |  j  } |  j r1 d | d j |  j ƒ f } n  d | } | S(   Ns   %s: %sR   s   %s.(   R   R   R   (   R	   R
   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR     s
    		
(   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRB     s   t   AlreadyCancelledc           B`  s   e  Z d  Z d „  Z RS(   s*   Tried to cancel an already-cancelled eventc         C`  s?   |  j  } |  j r1 d | d j |  j ƒ f } n  d | } | S(   Ns   %s: %sR   s   %s.(   R   R   R   (   R	   R
   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR     s
    		
(   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRC     s   t   PotentialZombieWarningc           B`  s   e  Z d  Z d Z RS(   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   R   R   t   MESSAGE(    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRD   '  s   t   Twistedi
   s4   There is no longer any potential for zombie process.t   ProcessDonec           B`  s   e  Z d  Z d „  Z RS(   s+   A process has ended without apparent errorsc         C`  s/   t  j |  d ƒ d |  _ d  |  _ | |  _ d  S(   Ns!   process finished with exit code 0i    (   R   R   t   exitCodeR   t   signalt   status(   R	   RJ   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   A  s    		(   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRG   >  s   t   ProcessTerminatedc           B`  s    e  Z d  Z d d d d „ Z RS(   s¦   
    A process has ended with a probable error condition

    @ivar exitCode: See L{__init__}
    @ivar signal: See L{__init__}
    @ivar status: See L{__init__}
    c         C`  so   | |  _  | |  _ | |  _ d } | d k	 r> | d | } n  | d k	 r[ | d | } n  t j |  | ƒ d S(   sž  
        @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{types.NoneType}

        @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{types.NoneType}

        @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}
        s   process endeds    with exit code %ss    by signal %sN(   RH   RI   RJ   R   R   R   (   R	   RH   RI   RJ   R
   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   Q  s    			  N(   R   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRK   I  s   t   ProcessExitedAlreadyc           B`  s   e  Z d  Z RS(   sd   
    The process has already exited and the operation requested can no longer
    be performed.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRL   k  s   t   NotConnectingErrorc           B`  s   e  Z d  Z d „  Z RS(   sE   The Connector was not connecting when it was asked to stop connectingc         C`  s?   |  j  } |  j r1 d | d j |  j ƒ f } n  d | } | S(   Ns   %s: %sR   s   %s.(   R   R   R   (   R	   R
   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   v  s
    		
(   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRM   s  s   t   NotListeningErrorc           B`  s   e  Z d  Z d „  Z RS(   s>   The Port was not listening when it was asked to stop listeningc         C`  s?   |  j  } |  j r1 d | d j |  j ƒ f } n  d | } | S(   Ns   %s: %sR   s   %s.(   R   R   R   (   R	   R
   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   ‚  s
    		
(   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRN     s   t   ReactorNotRunningc           B`  s   e  Z d  Z RS(   sJ   
    Error raised when trying to stop a reactor which is not running.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRO   ‹  s   t   ReactorNotRestartablec           B`  s   e  Z d  Z RS(   sF   
    Error raised when trying to run a reactor which was stopped.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRP   ‘  s   t   ReactorAlreadyRunningc           B`  s   e  Z d  Z RS(   sG   
    Error raised when trying to start the reactor multiple times.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRQ   ˜  s   t   ReactorAlreadyInstalledErrorc           B`  s   e  Z d  Z RS(   sE   
    Could not install reactor because one is already installed.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRR   ž  s   t   ConnectingCancelledErrorc           B`  s   e  Z d  Z d „  Z RS(   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}.
    c         C`  s   t  j |  | ƒ | |  _ d S(   s‰   
        @param address: The L{IAddress} that is the destination of the
            L{IStreamClientEndpoint} that was cancelled.
        N(   R   R   t   address(   R	   RT   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyR   ®  s    (   R   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRS   ¥  s   t   UnsupportedAddressFamilyc           B`  s   e  Z d  Z RS(   s‘   
    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.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRU   ¸  s   t   UnsupportedSocketTypec           B`  s   e  Z d  Z RS(   sŠ   
    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.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRV   À  s   t   AlreadyListenedc           B`  s   e  Z d  Z RS(   sd   
    An attempt was made to listen on a file descriptor which can only be
    listened on once.
    (   R   R   R   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyRW   Ç  s   R8   (F   R   t
   __future__R    R   R2   t   twisted.pythonR   t   twisted.python.versionsR   R   R   R   R   R   t   IOErrorR   R   R   R    R!   R"   R#   R$   R%   R&   R'   R(   R)   R*   R+   R,   t   errnot   ENETUNREACHt   ECONNREFUSEDt	   ETIMEDOUTR3   R1   R-   t   WSAENETUNREACHt   ImportErrorR8   R9   R:   R=   R>   R?   R@   R0   RB   RC   t   WarningRD   t   deprecatedModuleAttributeR   RG   RK   RL   t   RuntimeErrorRM   RN   RO   RP   RQ   t   AssertionErrorRR   RS   RU   RV   RW   t   __all__(    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/internet/error.pyt   <module>   s˜   


	
"									