
    BTh                     0     G d  de       Z G d de      Zy)c                   .     e Zd Z fdZed        Z xZS )(CannotOverwriteExistingCassetteExceptionc                 |    |d   | _         |d   | _        | j                  |d   |d         }t        |   |       y )Ncassettefailed_request)r   r   _get_messagesuper__init__)selfargskwargsmessage	__class__s       \/var/www/catia.catastroantioquia-mas.com/valormas/lib/python3.12/site-packages/vcr/errors.pyr	   z1CannotOverwriteExistingCassetteException.__init__   sG    z*$%56##F:$6?O8PQ!    c           	      2   | j                  |      }|radt        |       dt        |d   d          d}t        |d      D ]/  \  }}|\  }}}|d| d	|d
| dz  }|D ]  \  }	}
||	 d|
 dz  } 1 nd}d| j                  d| j                  d|d| S )z.Get the final message related to the exceptionzFound z similar requests with        z different matcher(s) :
   )start
z - (z).
Matchers succeeded : z
Matchers failed :
z - assertion failure :
z6No similar requests, that have not been played, found.z#Can't overwrite existing cassette (z) in your current record mode (z).
No match for the request (z) was found.
)find_requests_with_most_matcheslen	enumerate_pathrecord_mode)r   r   best_matchesbest_matches_msgidx
best_matchrequestsucceeded_matchersfailed_matchers_assertion_msgsfailed_matcherassertion_msgs              r   r   z5CannotOverwriteExistingCassetteException._get_message   s"   
  ??O \*+ ,LOA./00IK 
 $-\#C eZNXK+-K T' -,,>+? @** 
 6T e1NM$>*::RS`Raac(dd$ee  X1(..1C D))1)=)=(@ A))7(:. "	
r   )__name__
__module____qualname__r	   staticmethodr   __classcell__)r   s   @r   r   r      s    " 
 
r   r   c                       e Zd ZdZy)UnhandledHTTPRequestErrorz<Raised when a cassette does not contain the request we want.N)r%   r&   r'   __doc__ r   r   r+   r+   (   s    Fr   r+   N)	Exceptionr   KeyErrorr+   r-   r   r   <module>r0      s    $
y $
NG Gr   