
    %j&                         d Z g dZddl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y)z3Created on Fri May 06 2022 19:04:40 by codeskyblue
)AdbError
AdbTimeoutAdbInstallError    Nc                       e Zd ZdZy)r   z adb error N__name__
__module____qualname____doc__     S/var/www/oz-panel.ru/ozpay-pub/venv/lib/python3.12/site-packages/adbutils/errors.pyr   r      s    r   r   c                       e Zd ZdZy)r   z( timeout when communicate to adb-server Nr   r   r   r   r   r      s    2r   r   c                       e Zd ZdZy)AdbConnectionErrorz connection error Nr   r   r   r   r   r      s    r   r   c                       e Zd ZdefdZd Zy)r   outputc                 r    t        j                  d|      }|r|j                  d      nd| _        || _        y)aj  
        Errors examples:
        Failure [INSTALL_FAILED_ALREADY_EXISTS: Attempt to re-install io.appium.android.apis without first uninstalling.]
        Error: Failed to parse APK file: android.content.pm.PackageParser$PackageParserException: Failed to parse /data/local/tmp/tmp-29649242.apk

        Reference: https://github.com/mzlogin/awesome-adb
        zFailure \[([\w_]+)   UnknownN)researchgroupreasonr   )selfr   ms      r   __init__zAdbInstallError.__init__   s/     II+V4$%aggaj9r   c                     | j                   S )N)r   )r   s    r   __str__zAdbInstallError.__str__%   s    {{r   N)r   r	   r
   strr   r   r   r   r   r   r      s    
s 
r   r   c                       e Zd ZdZy)AdbSyncErrorz sync error Nr   r   r   r   r"   r"   )   s    r   r"   )	r   __all__r   	Exceptionr   r   r   r   r"   r   r   r   <module>r%      sP    8 	y 3 3 h "8 r   