
    -_g                     *    G d  de       Z G d de       Z G d de       Z G d de       Z G d d	e       Z G d
 de       Z G d de       Z G d de       Z G d de       Z	 G d de       Z
 G d de       Z G d de       Z G d de       Zg dZy)c                   "     e Zd ZdZ fdZ xZS )InvalidPasswordExceptionz@Raised when the provided password is rejected by the remote hostc                 (    d}t         |   |       y )NzInvalid password providedsuper__init__selfmessage	__class__s     :/usr/lib/python3/dist-packages/sos/collector/exceptions.pyr   z!InvalidPasswordException.__init__   s    -!    __name__
__module____qualname____doc__r   __classcell__r   s   @r   r   r      s    J" "r   r   c                   "     e Zd ZdZ fdZ xZS )TimeoutPasswordAuthExceptionzLRaised when a timeout is hit waiting for an auth reply using a password
    c                 (    d}t         |   |       y )Nz1Timeout hit while waiting for password validationr   r   s     r   r   z%TimeoutPasswordAuthException.__init__   s    E!r   r   r   s   @r   r   r          " "r   r   c                   "     e Zd ZdZ fdZ xZS )PasswordRequestExceptionzMRaised when the remote host requests a password that was not anticipated
    c                 (    d}t         |   |       y )Nz*Host requested password, but none providedr   r   s     r   r   z!PasswordRequestException.__init__!   s    >!r   r   r   s   @r   r   r      r   r   r   c                   "     e Zd ZdZ fdZ xZS )AuthPermissionDeniedExceptionz=Raised when authentication attempts return a permission errorc                 (    d}t         |   |       y )Nz.Permission denied while trying to authenticater   r   s     r   r   z&AuthPermissionDeniedException.__init__)       B!r   r   r   s   @r   r   r   &   s    G" "r   r   c                   $     e Zd ZdZd fd	Z xZS )ConnectionExceptionz'Raised when an attempt to connect failsc                 4    d| d| }t         |   |       y )NzCould not connect to host z on specified port r   )r	   addressportr
   r   s       r   r   zConnectionException.__init__1   s&    /y8KV!r   ) r%   r   r   s   @r   r!   r!   .   s    1" "r   r!   c                   $     e Zd ZdZd fd	Z xZS )CommandTimeoutExceptionzRaised when a timeout expiresc                 <    d}|r|d| z  }t         |   |       y )NzTimeout expiredz executing r   )r	   commandr
   r   s      r   r   z CommandTimeoutException.__init__:   s)    #WI..G!r   Nr   r   s   @r   r'   r'   7   s    '" "r   r'   c                   "     e Zd ZdZ fdZ xZS )ConnectionTimeoutExceptionzARaised when a timeout expires while trying to connect to the hostc                 (    d}t         |   |       y )Nz'Timeout expires while trying to connectr   r   s     r   r   z#ConnectionTimeoutException.__init__D   s    ;!r   r   r   s   @r   r,   r,   A   s    K" "r   r,   c                   $     e Zd ZdZd fd	Z xZS )ControlSocketMissingExceptionz-Raised when the SSH control socket is missingc                 0    d| d}t         |   |       y )NzSSH control socket z does not existr   )r	   pathr
   r   s      r   r   z&ControlSocketMissingException.__init__L   s    'v_=!r   )r%   r   r   s   @r   r/   r/   I   s    7" "r   r/   c                   "     e Zd ZdZ fdZ xZS )"ControlPersistUnsupportedExceptionz5Raised when SSH ControlPersist is unsupported locallyc                 (    d}t         |   |       y )Nz4ControlPersist unsupported by local SSH installationr   r   s     r   r   z+ControlPersistUnsupportedException.__init__T   s    H!r   r   r   s   @r   r3   r3   Q   s    ?" "r   r3   c                   "     e Zd ZdZ fdZ xZS )UnsupportedHostExceptionz8Raised when the host type is unsupported or undeterminedc                 (    d}t         |   |       y )Nz.Host did not match any supported distributionsr   r   s     r   r   z!UnsupportedHostException.__init__\   r   r   r   r   s   @r   r6   r6   Y   s    B" "r   r6   c                   $     e Zd ZdZd fd	Z xZS )InvalidTransportExceptionzZRaised when a transport is requested but it does not exist or is
    not supported locallyc                 6    d|r|nd }t         |   |       y )Nz4Connection failed: unknown or unsupported transport r%   r   )r	   	transportr
   r   s      r   r   z"InvalidTransportException.__init__e   s$    I#,i"57!r   r*   r   r   s   @r   r9   r9   a   s    " "r   r9   c                   "     e Zd ZdZ fdZ xZS )#SaltStackMasterUnsupportedExceptionz3Raised when SaltStack Master is unsupported locallyc                 (    d}t         |   |       y )Nz2Master unsupported by local SaltStack installationr   r   s     r   r   z,SaltStackMasterUnsupportedException.__init__n   s    F!r   r   r   s   @r   r=   r=   k   s    =" "r   r=   c                   "     e Zd ZdZ fdZ xZS )JujuNotInstalledExceptionz)Raised when juju is not installed locallyc                 (    d}t         |   |       y )Nz=Juju is not installed, please ensure you have installed juju.r   r   s     r   r   z"JujuNotInstalledException.__init__v   s    5 	 	!r   r   r   s   @r   r@   r@   s   s    3" "r   r@   )r   r'   r!   r,   r3   r/   r   r   r=   r   r6   r9   r@   N)	Exceptionr   r   r   r   r!   r'   r,   r/   r3   r6   r9   r=   r@   __all__ r   r   <module>rE      s   "y ""9 ""y ""I "") ""i "" ""I "" ""y ""	 "") ""	 "r   