
    FEi                         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 G d de      Zy)z Custom exceptions for trendspyg.c                       e Zd ZdZy)TrendspygExceptionz(Base exception for all trendspyg errors.N__name__
__module____qualname____doc__     `/home/sietch6/trending-topics-pipeline/venv/lib/python3.12/site-packages/trendspyg/exceptions.pyr   r      s    2r
   r   c                       e Zd ZdZy)DownloadErrorzRaised when download fails.

    Common causes:
    - Network connectivity issues
    - Download timeout
    - File save permission errors
    Nr   r	   r
   r   r   r   	        	r
   r   c                       e Zd ZdZy)RateLimitErrorzRaised when rate limit is exceeded.

    Google Trends may temporarily block requests if too many are made.
    Wait a few minutes before trying again.
    Nr   r	   r
   r   r   r      s    
 	r
   r   c                       e Zd ZdZy)InvalidParameterErrorzRaised when invalid parameters are provided.

    Check that:
    - geo is a valid country code (e.g., 'US', 'CA', 'UK')
    - hours is one of: 4, 24, 48, 168
    - category is valid (e.g., 'all', 'sports', 'technology')
    Nr   r	   r
   r   r   r      r   r
   r   c                       e Zd ZdZy)BrowserErrora  Raised when browser automation fails.

    Common causes:
    - Chrome browser not installed
    - ChromeDriver version mismatch
    - Page load timeout
    - UI element not found (Google may have changed their interface)

    Solutions:
    - Ensure Chrome browser is installed
    - Update trendspyg: pip install --upgrade trendspyg
    - Check GitHub issues for known UI changes
    Nr   r	   r
   r   r   r   (   s     	r
   r   c                       e Zd ZdZy)
ParseErrorzoRaised when parsing CSV/RSS data fails.

    The downloaded file may be corrupted or in unexpected format.
    Nr   r	   r
   r   r   r   9   s     	r
   r   N)r   	Exceptionr   r   r   r   r   r   r	   r
   r   <module>r      sU    &	 	
	& 		' 		. 		% 	"	# 	r
   