
    "hj                     6    d dl Z d dlmZ d dlmc mZ d Zd Zy)    N)ClientExceptionc                     t        | t              r| dkD  ry t        t        j                  dj                  |            )Nr   z!{0} should be a positive integer.)
isinstanceintr   
error_codeSDK_INVALID_PARAMETERformat)integernames     \/root/.hermes/SkillClaw/.venv/lib/python3.12/site-packages/aliyunsdkcore/utils/validation.pyassert_integer_positiver      s:    '3GaK
*::=DDTJL L    c                     t        j                  || t         j                  t         j                  z        }|s t	        t
        j                  d|d|      y )NzThe parameter z not match with )researchMIr   r   r   )prop	prop_namepattern	match_objs       r   validate_patternr      sH    		'45Ij>>FOQXY[ 	[ r   )r   &aliyunsdkcore.acs_exception.exceptionsr   &aliyunsdkcore.acs_exception.error_codeacs_exceptionr   r   r    r   r   <module>r      s    
 B ; ;L[r   