Ë
    #hè  ã                   ó‚   — d Z ddlZd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)z1
Global wikipedia exception and warning classes.
é    NzNThis shouldn't happen. Please report on GitHub: github.com/goldsmith/Wikipediac                   óH   — e Zd ZdZd„ Zd„ Zej                  dkD  rd„ Zyd„ Zy)ÚWikipediaExceptionzBase Wikipedia exception class.c                 ó   — || _         y ©N)Úerror)Úselfr   s     úQ/var/www/html/sandstorm/venv/lib/python3.12/site-packages/wikipedia/exceptions.pyÚ__init__zWikipediaException.__init__   ó	   € Ø€D…Jó    c                 ó8   — dj                  | j                  «      S )Nz<An unknown error occured: "{0}". Please report it on GitHub!)Úformatr   ©r   s    r	   Ú__unicode__zWikipediaException.__unicode__   s   € ØK×RÑRÐSW×S]ÑS]Ó^Ð^r   )é   r   c                 ó"   — | j                  «       S r   )r   r   s    r	   Ú__str__zWikipediaException.__str__   s   € Ø×ÑÓÐr   c                 ó@   — | j                  «       j                  d«      S )NÚutf8)r   Úencoder   s    r	   r   zWikipediaException.__str__   s   € Ø×ÑÓ×&Ñ& vÓ.Ð.r   N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   ÚsysÚversion_infor   © r   r	   r   r      s*   „ Ù'òò_ð 	×Ñ˜Òó ó/r   r   c                   ó   — e Zd ZdZdd„Zd„ Zy)Ú	PageErrorz3Exception raised when no Wikipedia matched a query.Nc                 ó,   — |r|| _         y |d   | _        y )Nr   )ÚpageidÚtitle)r   r!   Úargss      r	   r
   zPageError.__init__    s   € ÙØ€d…kà˜‘7€d…jr   c                 ó†   — t        | d«      rdj                  | j                  «      S dj                  | j                  «      S )Nr"   z2"{0}" does not match any pages. Try another query!z7Page id "{0}" does not match any pages. Try another id!)Úhasattrr   r"   r!   r   s    r	   r   zPageError.__unicode__&   s9   € ÜˆtWÔØD×KÑKÈDÏJÉJÓWÐWàI×PÑPÐQU×Q\ÑQ\Ó]Ð]r   r   ©r   r   r   r   r
   r   r   r   r	   r   r      s   „ Ù;óó^r   r   c                   ó   — e Zd ZdZd„ Zd„ Zy)ÚDisambiguationErrora  
  Exception raised when a page resolves to a Disambiguation page.

  The `options` property contains a list of titles
  of Wikipedia pages that the query may refer to.

  .. note:: `options` does not include titles that do not link to a valid Wikipedia page.
  c                 ó    — || _         || _        y r   )r"   Úoptions)r   r"   Úmay_refer_tos      r	   r
   zDisambiguationError.__init__7   s   € Ø€D„JØ€D…Lr   c                 ól   — dj                  | j                  dj                  | j                  «      «      S )Nz"{0}" may refer to: 
{1}ú
)r   r"   Újoinr*   r   s    r	   r   zDisambiguationError.__unicode__;   s&   € Ø)×0Ñ0°·±¸T¿Y¹YÀtÇ|Á|Ó=TÓUÐUr   Nr&   r   r   r	   r(   r(   -   s   „ ñò óVr   r(   c                   ó   — e Zd ZdZd„ Zd„ Zy)ÚRedirectErrorzGException raised when a page title unexpectedly resolves to a redirect.c                 ó   — || _         y r   )r"   )r   r"   s     r	   r
   zRedirectError.__init__B   r   r   c                 ó8   — dj                  | j                  «      S )Nz]"{0}" resulted in a redirect. Set the redirect property to True to allow automatic redirects.)r   r"   r   s    r	   r   zRedirectError.__unicode__E   s    € Øm×tÑtÐuy×uÑuó  Að  Ar   Nr&   r   r   r	   r0   r0   ?   s   „ ÙOòóAr   r0   c                   ó   — e Zd ZdZd„ Zd„ Zy)ÚHTTPTimeoutErrorzCException raised when a request to the Mediawiki servers times out.c                 ó   — || _         y r   )Úquery)r   r6   s     r	   r
   zHTTPTimeoutError.__init__L   r   r   c                 ó8   — dj                  | j                  «      S )NzxSearching for "{0}" resulted in a timeout. Try again in a few seconds, and make sure you have rate limiting set to True.)r   r6   r   s    r	   r   zHTTPTimeoutError.__unicode__O   s5   € ð I÷  Pñ  Pð  QU÷  Q[ñ  Q[ó  \ð  \r   Nr&   r   r   r	   r4   r4   I   s   „ ÙKòó\r   r4   )	r   r   ÚODD_ERROR_MESSAGEÚ	Exceptionr   r   r(   r0   r4   r   r   r	   ú<module>r:      s`   ðñó ð eÐ ô/˜ô /ô$^Ð"ô ^ô VÐ,ô Vô$AÐ&ô Aô\Ð)õ \r   