+
    Ki  c                   s   R t ^ RIHt ^ RIHt ^ RIHtHt  ! R R]4      t	 ! R R]	4      t
 ! R R	]	4      t ! R
 R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]	4      t ! R R]	4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]4      t ! R R]	4      t ! R  R!]4      t ! R" R#]	4      t ! R$ R%]4      t ! R& R']4      t ! R( R)]4      tR*# )+zException handling module)Iterable)gettext)AnyOptionalc                   sF   a a ] tR t^t oRtRV3R lV 3R llltRtVtV ;t# )LutrisErrorz(Base exception for Lutris related errorsc                2   < V ^8  d   QhRS[ RS[ RS[RS[/# )   messagemessage_markupargskwargsstrr   format__classdict__   "6/usr/lib/python3.14/site-packages/lutris/exceptions.py__annotate__ZLutrisError.__annotate__   s*     ! ! !S ! !WZ !    c                sV   < \         SV `  ! V.VO5/ VB  Wn        W n        R V n        R# )FN)super__init__r   r   is_expected)selfr   r   r	   r
   	__class__   &&&*,r   r   ZLutrisError.__init__   s-    24262, r   )r   r   r   N	__name__
__module____qualname____firstlineno____doc__r   __static_attributes____classdictcell____classcell__r   r      @@r   r   r      s     2! ! !r   r   c                   sB   a a ] tR t^t oRtV3R lV 3R lltRtVtV ;t# )MissingRuntimeComponentErrorzKRaised when a Lutris component isn't found, but should have been installed.c                r   )r   r   component_namer	   r
   r   r   r   r   r   Z)MissingRuntimeComponentError.__annotate__   s*          S    PS  r   c                sJ   < \         SV `  ! V.VO5/ VB  W n        R V n        R# )TN)r   r   r'   r   )r   r   r'   r	   r
   r   r   r   r   Z%MissingRuntimeComponentError.__init__   s(    24262,r   )r'   r   r   r$   r%   r   r&   r&      s     U     r   r&   c                   s    ] tR t^tRtRtR# )MisconfigurationErrorzRaised for incorrect configuration or installation, like incorrect
or missing settings, missing components, that sort of thing. This has subclasses
that are less vague. Nr   r   r   r   r    r!   r)   r   r   r(   r(      s    r   r(   c                   sF   a a ] tR t^!t oRtRV3R lV 3R llltRtVtV ;t# )DirectoryNotFoundErrorz@Raise this error if a directory that is required is not present.c                r   )r   r   	directoryr	   r
   r   r   r   r   r   Z#DirectoryNotFoundError.__annotate__$   s*     # # #s ## #Y\ #r   c                   < V'       g#   V'       d   \        R 4      P                  V4      p\        SV `  ! V.VO5/ VB  W n        R# )z#The directory {} could not be foundN)_r   r   r   r,   )r   r   r,   r	   r
   r   r   r   r   ZDirectoryNotFoundError.__init__$   s:    9=>EEiPG24262"r   )r,   NNr   r$   r%   r   r+   r+   !   s     J# # #r   r+   c                   sF   a a ] tR t^+t oRtRV3R lV 3R llltRtVtV ;t# )SymlinkNotUsableErrorz=Raise this error if a symlink that is required is not usable.c                r   )r   r   linkr	   kwargr   r   r   r   r   Z"SymlinkNotUsableError.__annotate__.   s*       # S SV r   c                s   < V'       g-   V'       d%   T;'       g    \        R 4      P                  V4      p\        SV `  ! V.VO5/ VB  W n        R# )zThe link {} could not be used.N)r.   r   r   r   r1   )r   r   r1   r	   r2   r   r   r   r   ZSymlinkNotUsableError.__init__.   sB    4QQ#C!D!K!KD!QG14151	r   )r1   r/   r   r$   r%   r   r0   r0   +   s     G  r   r0   c                   s    ] tR t^5tRtRtR# )GameConfigErrorzUThrow this error when the game configuration prevents the game from
running properly.r)   Nr*   r)   r   r   r3   r3   5   s    r   r3   c                   sF   a a ] tR t^:t oRtRV3R lV 3R llltRtVtV ;t# )MissingBiosErrorzGThrow this error when the game requires a BIOS, but none is configured.c                ,   < V ^8  d   QhRS[ RS[RS[/# r   r   r	   r
   r   r   r   r   r   ZMissingBiosError.__annotate__=   s'     d d d3 d# dr   c                sV   < \         SV `  ! T;'       g    \        R 4      .VO5/ VB  R# )z(A bios file is required to run this gameN)r   r   r.   r   r   r	   r
   r      &&*,r   r   ZMissingBiosError.__init__=   s*    QQA&P$QcTXc\bcr   r)   r   r   r$   r%   r   r4   r4   :   s     Qd d dr   r4   c                   s    ] tR t^AtRtRtR# )AuthenticationErrorz-Raised when authentication to a service failsr)   Nr*   r)   r   r   r9   r9   A   s    7r   r9   c                   s    ] tR t^EtRtRtR# )UnavailableGameErrorz0Raised when a game is unavailable from a servicer)   Nr*   r)   r   r   r:   r:   E   s    :r   r:   c                   sB   a a ] tR t^It oRV3R lV 3R llltRtVtV ;t# )UnavailableLibrariesErrorc                sF   < V ^8  d   QhRS[ S[,          RS[S[,          /# )r   	librariesarch)r    r   r   r   r   r   r   Z&UnavailableLibrariesError.__annotate__J   s#     # #(3- #x} #r   c                s   < \        R 4      P                  V'       d   TMRRP                  V4      R7      p\        SV `  V4       Wn        R# )zXThe following {arch} libraries are required but are not installed on your system:
{libs}Z z, )r=   ZlibsN)r.   r   Zjoinr   r   r<   )r   r<   r=   r   r   s   &&& r   r   Z"UnavailableLibrariesError.__init__J   sE    opww2DIIi,@ x 
 	!"r   )r<   r   r   r   r   r   r   r!   r"   r#   r$   r%   r   r;   r;   I   s     # # #r   r;   c                   s    ] tR t^RtRtRtR# )UnavailableRunnerErrorz=Raised when a runner is not installed or not installed fully.r)   Nr*   r)   r   r   r?   r?   R   s    Gr   r?   c                   s    ] tR t^VtRtRtR# )UnspecifiedVersionErrorz<Raised when a version number must be specified, but was not.r)   Nr*   r)   r   r   r@   r@   V   s    Fr   r@   c                   s    ] tR t^ZtRtRtR# )MissingExecutableErrorz'Raised when a program can't be located.r)   Nr*   r)   r   r   rA   rA   Z   s    1r   rA   c                   sF   a a ] tR t^^t oRtRV3R lV 3R llltRtVtV ;t# )MissingMediaErrorz-Raised when an image file could not be found.c                r   r   r   filenamer	   r
   r   r   r   r   r   ZMissingMediaError.__annotate__a   s*     ! ! !c ! !X[ !r   c                r-   )The file {} could not be foundNr.   r   r   r   rD   r   r   rD   r	   r
   r   r   r   r   ZMissingMediaError.__init__a   s:    889@@JG24262 r   rD   r/   r   r$   r%   r   rB   rB   ^   s     7! ! !r   rB   c                   sF   a a ] tR t^it oRtRV3R lV 3R llltRtVtV ;t# )MissingGameExecutableErrorz?Raise when a game's executable can't be found is not specified.c                r   rC   r   r   r   r   r   Z'MissingGameExecutableError.__annotate__l   s*     ! ! !c ! !X[ !r   c                s   < V'       g/   V'       d   \        R 4      P                  V4      pM\        R4      p\        SV `  ! V.VO5/ VB  W n        R# )rE   zLThis game has no executable set. The install process didn't finish properly.NrF   rG   r   r   r   Z#MissingGameExecutableError.__init__l   sF    <=DDXNjk24262 r   rH   r/   r   r$   r%   r   rI   rI   i   s     I! ! !r   rI   c                   s    ] tR t^wtRtRtR# )InvalidGameMoveErrorzSRaised when a game can't be moved as desired; we may have to just set the location.r)   Nr*   r)   r   r   rJ   rJ   w   s    ]r   rJ   c                   sF   a a ] tR t^{t oRtRV3R lV 3R llltRtVtV ;t# )EsyncLimitErrorz1Raised when the ESYNC limit is not set correctly.c                r5   r6   r   r   r   r   r   ZEsyncLimitError.__annotate__~   "     3 3 33 3# 3r   c                V   < V'       g   \        R 4      p\        SV `  ! V.VO5/ VB  R# )z(Your ESYNC limits are not set correctly.Nr.   r   r   r7   r8   r   r   ZEsyncLimitError.__init__~   s(    BCG24262r   r)   r   r   r$   r%   r   rK   rK   {   s     ;3 3 3r   rK   c                   sF   a a ] tR t^t oRtRV3R lV 3R llltRtVtV ;t# )FsyncUnsupportedErrorzARaised when FSYNC is enabled, but is not supported by the kernel.c                r5   r6   r   r   r   r   r   Z"FsyncUnsupportedError.__annotate__   rL   r   c                rM   )zOYour kernel is not patched for fsync. Please get a patched kernel to use fsync.NrN   r7   r8   r   r   ZFsyncUnsupportedError.__init__   s(    ijG24262r   r)   r   r   r$   r%   r   rO   rO      s     K3 3 3r   rO   c                   s>   a a ] tR t^t oV3R lV 3R lltRtVtV ;t# )InvalidSearchTermErrorc                r5   r6   r   r   r   r   r   Z#InvalidSearchTermError.__annotate__   s"       C 3 r   c                s<   < \         SV `  ! V.VO5/ VB  Wn        R # r   )r   r   r   r7   r8   r   r   ZInvalidSearchTermError.__init__   s    24262r   )r   r>   r$   r%   r   rP   rP      s       r   rP   N)r    Zcollections.abcr    r   r.   Ztypingr   r   Z	Exceptionr   r&   r(   r+   r0   r3   r4   r9   r:   r;   r?   r@   rA   rB   rI   rJ   rK   rO   Z
ValueErrorrP   r)   r   r   <module>rQ      s    $    !) ! ;  K #2 #1 + 
d d8+ 8;; ;# 5 #H2 HG3 G22 2! !!!7 !^; ^3i 33I 3Z r   