+
    oiT                     b   R t ^ RIHt Rt^ RIt^ RIHt  ! R R]4      t	 ! R R]	4      t
 ! R	 R
]	4      t ! R R]	4      t ! R R]	4      t ! R R]	4      t ! R R]	4      t ! R R]	4      t ! R R]
4      t ! R R]	4      t ! R R]	4      t ! R R]
4      t ! R R]	4      t ! R R ]	4      tR# )!z_Errors for the library.

All exceptions defined by the library
should be defined in this file.
)absolute_importz$jcgregorio@google.com (Joe Gregorio)N)_helpersc                       ] tR t^tRtRtR# )ErrorzBase error for this module. N__name__
__module____qualname____firstlineno____doc____static_attributes__r       y/Users/tonyclaw/.openclaw/workspace/scripts/youtube-playlists/venv/lib/python3.14/site-packages/googleapiclient/errors.pyr   r      s    %r   r   c                   x   a  ] tR t^#t o Rt]P                  ! ^4      RR l4       t]R 4       t	R t
R t]tRtV tR# )		HttpErrorz$HTTP data was invalid or unexpected.Nc                    Wn         \        V\        4      '       g   \        R 4      hW n        W0n        RV n        V P                  4       V n        R# )zHTTP content should be bytes N)	resp
isinstancebytes	TypeErrorcontenturierror_details_get_reasonreason)selfr   r   r   s   &&&&r   __init__HttpError.__init__&   sB    	'5)):;;&&(r   c                .    V P                   P                  # )z6Return the HTTP status code from the response content.)r   statusr   s   &r   status_codeHttpError.status_code0   s     yyr   c                  a V P                   P                  p  \        P                  ! V P                  P                  R4      4      o\        S\        4      '       dE   SR,          R,          p\        V3R lR 4       R4      pV'       d   SR,          V,          V n
        Mk\        S\        4      '       dN   \        S4      ^ 8  d>   S^ ,          pVR,          R,          pRVR,          9   d   VR,          R,          V n
        MSV n
         Vf   RpVP!                  4       #   \        P                   d     T P                  P                  R4      o ELi ; i  \        \        \        3 d     Lei ; i)z=Calculate the reason for the error from the response content.zutf-8errormessagec              3   H   <"   T F  pVSR ,          9   g   K  Vx  K  	  R# 5i)r&   Nr   ).0kwdatas   & r   	<genexpr>(HttpError._get_reason.<locals>.<genexpr>A   s&      "LBg. "Ls   "
"detailsr   )detailr.   errorsr'   )r   r   jsonloadsr   decodeJSONDecodeErrorr   dictnextr   listlen
ValueErrorKeyErrorr   strip)r   r   error_detail_keywordfirst_errorr+   s   &   @r   r   HttpError._get_reason5   s?   !!	4zz$,,"5"5g">? $%%gy1'+"L
 ($ ()-g7K)LD&D$''CIM"1g$W-i8G 44)4W)=i)HD&%)" >F||~5 '' 4||**734, Hi0 		s=   /D$ 	AE #A"E E $0EE EE E43E4c           	        V P                   '       dF   R V P                  P                  : RV P                  : RV P                  : RV P                   : R2	# V P                  '       d8   R V P                  P                  : RV P                  : RV P                  : R2# R V P                  P                  : RV P                  : R2# )z<HttpError z when requesting z returned "z". Details: ""> ")r   r   r!   r   r   r"   s   &r   __repr__HttpError.__repr__W   s    		  ""	  XXX		     -1II,<,<dkkJJr   )r   r   r   r   r   N)r   r	   r
   r   r   util
positionalr   propertyr#   r   rB   __str__r   __classdictcell____classdict__s   @r   r   r   #   sJ     .	__Q) )     DK" Gr   r   c                       ] tR t^ktRtRtR# )InvalidJsonErrorz&The JSON returned could not be parsed.r   Nr   r   r   r   rM   rM   k   s    0r   rM   c                       ] tR t^qtRtRtR# )UnknownFileTypez File type unknown or unexpected.r   Nr   r   r   r   rO   rO   q       *r   rO   c                       ] tR t^wtRtRtR# )UnknownLinkTypez Link type unknown or unexpected.r   Nr   r   r   r   rR   rR   w   rP   r   rR   c                       ] tR t^}tRtRtR# )UnknownApiNameOrVersionz)No API with that name and version exists.r   Nr   r   r   r   rT   rT   }   s    3r   rT   c                       ] tR t^tRtRtR# )UnacceptableMimeTypeErrorz4That is an unacceptable mimetype for this operation.r   Nr   r   r   r   rV   rV      s    >r   rV   c                       ] tR t^tRtRtR# )MediaUploadSizeErrorz+Media is larger than the method can accept.r   Nr   r   r   r   rX   rX      s    5r   rX   c                       ] tR t^tRtRtR# )ResumableUploadErrorz'Error occurred during resumable upload.r   Nr   r   r   r   rZ   rZ      s    1r   rZ   c                       ] tR t^tRtRtR# )InvalidChunkSizeErrorz!The given chunksize is not valid.r   Nr   r   r   r   r\   r\      s    +r   r\   c                       ] tR t^tRtRtR# )InvalidNotificationErrorz$The channel Notification is invalid.r   Nr   r   r   r   r^   r^      s    .r   r^   c                   b   a  ] tR t^t o Rt]P                  ! ^4      RR l4       tR t]t	Rt
V tR# )
BatchErrorz'Error occurred during batch operations.Nc                *    W n         W0n        Wn        R # rD   )r   r   r   )r   r   r   r   s   &&&&r   r   BatchError.__init__   s    	r   c                    \        V P                  R R4      f   RV P                  ,          # RV P                  P                  : RV P                  : R2# )r!   Nz<BatchError "%s">z<BatchError rA   r@   )getattrr   r   r!   r"   s   &r   rB   BatchError.__repr__   sD    499h-5&$++66 6 .2YY-=-=t{{KKr   )r   r   r   )NN)r   r	   r
   r   r   rE   rF   r   rB   rH   r   rI   rJ   s   @r   r`   r`      s0     1	__Q 
L Gr   r`   c                   d   a a ] tR t^t oRt]P                  ! ^4      RV 3R ll4       tRtVt	V ;t
# )UnexpectedMethodErrorz;Exception raised by RequestMockBuilder on unexpected calls.c                <   < \         \        V `  RV,          4       R# ))Constructor for an UnexpectedMethodError.zReceived unexpected call %sN)superrg   r   )r   methodId	__class__s   &&r   r   UnexpectedMethodError.__init__   s     	#T3)H4	
r   r   rD   )r   r	   r
   r   r   rE   rF   r   r   rI   __classcell__rl   rK   s   @@r   rg   rg      s(     E	__Q
 
 
r   rg   c                   6   a a ] tR t^t oRtV 3R ltRtVtV ;t# )UnexpectedBodyErrorz<Exception raised by RequestMockBuilder on unexpected bodies.c                @   < \         \        V `  RV: RV: R24       R# )ri   zExpected: [z] - Provided: []N)rj   rq   r   )r   expectedprovidedrl   s   &&&r   r   UnexpectedBodyError.__init__   s    !41198D	
r   r   )	r   r	   r
   r   r   r   r   rI   rn   ro   s   @@r   rq   rq      s     F
 
r   rq   )r   
__future__r   
__author__r1   googleapiclientr   rE   	Exceptionr   r   rM   rO   rR   rT   rV   rX   rZ   r\   r^   r`   rg   rq   r   r   r   <module>r{      s   
 '3
  ,	I 	E EP	u 		e 		e 		e 		 		5 		9 		E 		u 	 $
E 

% 
r   