
    +d	                         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 G d de          Z G d de          Z G d de          Z	dS )c                       e Zd ZdZdS )CatalogExceptionz,Basic exception for errors raised by catalogN__name__
__module____qualname____doc__     9lib/python3.11/site-packages/intake/catalog/exceptions.pyr   r   	   s        6666r
   r   c                       e Zd ZdZdS )PermissionDeniedz\Raised when user requests functionality that they do not have permission
    to access.
    Nr   r	   r
   r   r   r      s           r
   r   c                   $     e Zd ZdZd fd	Z xZS )ShellPermissionDeniedz<The user does not have permission to execute shell commands.Nc                 `    |d}t          t          |                               |           d S )Nz8Additional permissions needed to execute shell commands.)superr   __init__selfmsg	__class__s     r   r   zShellPermissionDenied.__init__   s6     	MLC#T**33C88888r
   Nr   r   r   r   r   __classcell__r   s   @r   r   r      sC        FF9 9 9 9 9 9 9 9 9 9r
   r   c                   $     e Zd ZdZd fd	Z xZS )EnvironmentPermissionDeniedz@The user does not have permission to read environment variables.Nc                 `    |d}t          t          |                               |           d S )Nz<Additional permissions needed to read environment variables.)r   r   r   r   s     r   r   z$EnvironmentPermissionDenied.__init__   s6     	QPC)40099#>>>>>r
   r   r   r   s   @r   r   r      sC        JJ? ? ? ? ? ? ? ? ? ?r
   r   c                   "     e Zd ZdZ fdZ xZS )ValidationErrorz'Something's wrong with the catalog specc                 f    t          t          |                               |           || _        d S r   )r   r   r   errors)r   messager!   r   s      r   r   zValidationError.__init__(   s,    ot$$--g666r
   r   r   s   @r   r   r   %   s>        11        r
   r   c                   "     e Zd ZdZ fdZ xZS )DuplicateKeyErrorz!Catalog contains key duplicationsc                     |j         }|j        }d                    |dz   |dz             }t          t          |                               |g            d S )Nz)duplicate key found on line {}, column {}   )linecolumnformatr   r$   r   )	r   contextcontext_markproblemproblem_markr'   r(   r   r   s	           r   r   zDuplicateKeyError.__init__0   sX     $9@@6TU:VV&&//R88888r
   r   r   s   @r   r$   r$   -   s>        ++9 9 9 9 9 9 9 9 9r
   r$   c                       e Zd ZdS )ObsoleteErrorN)r   r   r   r	   r
   r   r/   r/   7   s        Dr
   r/   c                        e Zd Z fdZ xZS )ObsoleteParameterErrorc                 ^    d}t          t          |                               |g            d S )NzDetected old syntax. See details for upgrade instructions to new syntax:

[old syntax]

parameters:
  - name: abc
    type: str

[new syntax]

parameters:
  abc:
    type: str
)r   r1   r   r   s     r   r   zObsoleteParameterError.__init__<   s3     	$d++44S"=====r
   r   r   r   r   r   r   s   @r   r1   r1   ;   s8        > > > > > > > > >r
   r1   c                        e Zd Z fdZ xZS )ObsoleteDataSourceErrorc                 ^    d}t          t          |                               |g            d S )NzDetected old syntax. See details for upgrade instructions to new syntax:

[old syntax]

sources:
  - name: abc
    driver: csv

[new syntax]

sources:
  abc:
    driver: csv
)r   r5   r   r   s     r   r   z ObsoleteDataSourceError.__init__O   s3     	%t,,55c2>>>>>r
   r3   r   s   @r   r5   r5   N   s8        ? ? ? ? ? ? ? ? ?r
   r5   N)
	Exceptionr   r   r   r   r   r$   r/   r1   r5   r	   r
   r   <module>r8      s  7 7 7 7 7y 7 7 7    '   9 9 9 9 9, 9 9 9? ? ? ? ?"2 ? ? ?    &   9 9 9 9 9 9 9 9	 	 	 	 	O 	 	 	> > > > >] > > >&? ? ? ? ?m ? ? ? ? ?r
   