
    z	i                         S r SSKJr  SSKJr   " S S\5      r " S S\5      r " S S	\5      r " S
 S\5      r " S S\5      r	 " S S\5      r
g)z0
Exception for errors raised by the transpiler.
    )QiskitError)PassManagerErrorc                       \ rS rSrSrSrg)TranspilerAccessError   z?DEPRECATED: Exception of access error in the transpiler passes. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       V/home/james-whalen/.local/lib/python3.13/site-packages/qiskit/transpiler/exceptions.pyr   r      s    Ir   r   c                       \ rS rSrSrSrg)TranspilerError   z'Exceptions raised during transpilation.r   Nr	   r   r   r   r   r      s    1r   r   c                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )CouplingError   z:Base class for errors raised by the coupling graph object.c                 L   > [         TU ]  " U6   SR                  U5      U l        gzSet the error message. Nsuper__init__joinmsgselfr   	__class__s     r   r   CouplingError.__init__       #88C=r   c                 ,    [        U R                  5      $ zReturn the message.reprr   r!   s    r   __str__CouplingError.__str__$       DHH~r   r   	r
   r   r   r   r   r   r*   r   __classcell__r"   s   @r   r   r      s    D!
 r   r   c                   2   ^  \ rS rSrSrU 4S jrS rSrU =r$ )LayoutError)   z#Errors raised by the layout object.c                 L   > [         TU ]  " U6   SR                  U5      U l        gr   r   r    s     r   r   LayoutError.__init__,   r$   r   c                 ,    [        U R                  5      $ r&   r'   r)   s    r   r*   LayoutError.__str__1   r,   r   r-   r.   r0   s   @r   r2   r2   )   s    -!
 r   r2   c                       \ rS rSrSrSrg)CircuitTooWideForTarget6   z7Error raised if the circuit is too wide for the target.r   Nr	   r   r   r   r9   r9   6   s    Ar   r9   c                       \ rS rSrSrSrg)InvalidLayoutError:   z4Error raised when a user provided layout is invalid.r   Nr	   r   r   r   r<   r<   :   s    >r   r<   N)r   qiskit.exceptionsr   qiskit.passmanager.exceptionsr   r   r   r   r2   r9   r<   r   r   r   <module>r@      s`    * :J, J2+ 2
K 

+ 
Bo B? ?r   