U vfF @ s d dl Z G dd deZG dd deZG dd deZG dd d eZG d d deZG dd d eZG dd deZG dd deZ G dd deZ G dd deZG dd de jZ G dd deZG dd deZG dd deZdS ) Nc @ s e Zd ZdZdS )SSHExceptionzT Exception raised by failures in SSH2 protocol negotiation or logic errors. N__name__ __module____qualname____doc__ r r G/opt/alt/python38/lib/python3.8/site-packages/paramiko/ssh_exception.pyr s r c @ s e Zd ZdZdS )AuthenticationExceptionz Exception raised when authentication failed for some reason. It may be possible to retry with different credentials. (Other classes specify more specific reasons.) .. versionadded:: 1.6 Nr r r r r r s r c @ s e Zd ZdZdS )PasswordRequiredExceptionzR Exception raised when a password is needed to unlock a private key file. Nr r r r r r * s r c @ s$ e Zd ZdZg Zdd Zdd ZdS )BadAuthenticationTypez Exception raised when an authentication type (like password) is used, but the server isn't allowing that type. (It may only allow public-key, for example.) .. versionadded:: 1.1 c C s t | || || _|| _d S N)r __init__explanation allowed_types)selfr typesr r r r > s zBadAuthenticationType.__init__c C s d | j| jS )Nz{}; allowed types: {!r})formatr r r r r r __str__E s zBadAuthenticationType.__str__Nr r r r r r r r r r r r 2 s r c @ s$ e Zd ZdZg Zdd Zdd ZdS )PartialAuthenticationzM An internal exception thrown in the case of partial authentication. c C s t | | || _d S r )r r r )r r r r r r R s zPartialAuthentication.__init__c C s d | jS )Nz+Partial authentication; allowed types: {!r})r r r r r r r V s zPartialAuthentication.__str__Nr r r r r r K s r c @ s e Zd ZdS )UnableToAuthenticateN)r r r r r r r r ] s r c @ s e Zd ZdZdd Zdd ZdS )ChannelExceptionz Exception raised when an attempt to open a new `.Channel` fails. :param int code: the error code returned by the server .. versionadded:: 1.6 c C s t | || || _|| _d S r )r r codetext)r r r r r r r j s zChannelException.__init__c C s d | j| jS )NzChannelException({!r}, {!r}))r r r r r r r r o s zChannelException.__str__Nr r r r r r r r r r r a s r c @ s e Zd ZdZdd Zdd ZdS )BadHostKeyExceptiona The host key given by the SSH server did not match what we were expecting. :param str hostname: the hostname of the SSH server :param PKey got_key: the host key presented by the server :param PKey expected_key: the host key expected .. versionadded:: 1.6 c C s&