o
    O6uf—  ã                   @   sÜ   G d d„ de ƒZG dd„ de ƒZG dd„ de ƒZG dd„ de ƒZG dd	„ d	e ƒZG d
d„ de ƒZG dd„ de ƒZG dd„ de ƒZG dd„ de ƒZ	G dd„ de ƒZ
G dd„ de ƒZG dd„ de ƒZG dd„ de ƒZg d¢ZdS )c                       ó    e Zd ZdZ‡ fdd„Z‡  ZS )ÚInvalidPasswordExceptionz@Raised when the provided password is rejected by the remote hostc                    ó   d}t ƒ  |¡ d S )NzInvalid password provided©ÚsuperÚ__init__©ÚselfÚmessage©Ú	__class__© ú:/usr/lib/python3/dist-packages/sos/collector/exceptions.pyr      ó   z!InvalidPasswordException.__init__©Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú__classcell__r   r   r
   r   r      ó    r   c                       r   )ÚTimeoutPasswordAuthExceptionzLRaised when a timeout is hit waiting for an auth reply using a password
    c                    r   )Nz1Timeout hit while waiting for password validationr   r   r
   r   r   r      r   z%TimeoutPasswordAuthException.__init__r   r   r   r
   r   r      ó    r   c                       r   )ÚPasswordRequestExceptionzMRaised when the remote host requests a password that was not anticipated
    c                    r   )Nz*Host requested password, but none providedr   r   r
   r   r   r   !   r   z!PasswordRequestException.__init__r   r   r   r
   r   r      r   r   c                       r   )ÚAuthPermissionDeniedExceptionz=Raised when authentication attempts return a permission errorc                    r   )Nz.Permission denied while trying to authenticater   r   r
   r   r   r   )   r   z&AuthPermissionDeniedException.__init__r   r   r   r
   r   r   &   r   r   c                       ó"   e Zd ZdZd‡ fdd„	Z‡  ZS )ÚConnectionExceptionz'Raised when an attempt to connect failsÚ c                    s    d|› d|› �}t ƒ  |¡ d S )NzCould not connect to host z on specified port r   )r   ÚaddressÚportr	   r
   r   r   r   1   s   ÿzConnectionException.__init__)r   r   r   r   r   r
   r   r   .   ó    r   c                       r   )ÚCommandTimeoutExceptionzRaised when a timeout expiresNc                    s&   d}|r|d|› �7 }t ƒ  |¡ d S )NzTimeout expiredz executing r   )r   Úcommandr	   r
   r   r   r   :   s   z CommandTimeoutException.__init__©Nr   r   r   r
   r   r    7   r   r    c                       r   )ÚConnectionTimeoutExceptionzARaised when a timeout expires while trying to connect to the hostc                    r   )Nz'Timeout expires while trying to connectr   r   r
   r   r   r   D   r   z#ConnectionTimeoutException.__init__r   r   r   r
   r   r#   A   r   r#   c                       r   )ÚControlSocketMissingExceptionz-Raised when the SSH control socket is missingr   c                    s   d|› d�}t ƒ  |¡ d S )NzSSH control socket z does not existr   )r   Úpathr	   r
   r   r   r   L   s   z&ControlSocketMissingException.__init__)r   r   r   r   r
   r   r$   I   r   r$   c                       r   )Ú"ControlPersistUnsupportedExceptionz5Raised when SSH ControlPersist is unsupported locallyc                    r   )Nz4ControlPersist unsupported by local SSH installationr   r   r
   r   r   r   T   r   z+ControlPersistUnsupportedException.__init__r   r   r   r
   r   r&   Q   r   r&   c                       r   )ÚUnsupportedHostExceptionz8Raised when the host type is unsupported or undeterminedc                    r   )Nz.Host did not match any supported distributionsr   r   r
   r   r   r   \   r   z!UnsupportedHostException.__init__r   r   r   r
   r   r'   Y   r   r'   c                       r   )ÚInvalidTransportExceptionzZRaised when a transport is requested but it does not exist or is
    not supported locallyNc                    s"   d|r|nd› �}t ƒ  |¡ d S )Nz4Connection failed: unknown or unsupported transport r   r   )r   Ú	transportr	   r
   r   r   r   e   s   
ÿz"InvalidTransportException.__init__r"   r   r   r   r
   r   r(   a   s    r(   c                       r   )Ú#SaltStackMasterUnsupportedExceptionz3Raised when SaltStack Master is unsupported locallyc                    r   )Nz2Master unsupported by local SaltStack installationr   r   r
   r   r   r   n   r   z,SaltStackMasterUnsupportedException.__init__r   r   r   r
   r   r*   k   r   r*   c                       r   )ÚJujuNotInstalledExceptionz)Raised when juju is not installed locallyc                    r   )Nz=Juju is not installed, please ensure you have installed juju.r   r   r
   r   r   r   v   s   ÿz"JujuNotInstalledException.__init__r   r   r   r
   r   r+   s   r   r+   )r   r    r   r#   r&   r$   r   r   r*   r   r'   r(   r+   N)Ú	Exceptionr   r   r   r   r   r    r#   r$   r&   r'   r(   r*   r+   Ú__all__r   r   r   r   Ú<module>   s   			

