L iddlmZddlmZddlZgdZGddeZGddeZGd d eZ Gd d eZ Gd deZ Gdde Z Gdde Z Gdde ZGdde ZGdde ZGdde ZGdde ZGdde ZGdd e ZGd!d"e ZGd#d$e ZGd%d&e ZGd'd(e Zy))) annotations)LiteralN)BadRequestErrorAuthenticationErrorPermissionDeniedError NotFoundError ConflictErrorUnprocessableEntityErrorRateLimitErrorInternalServerErrorc eZdZy)AnthropicErrorN__name__ __module__ __qualname__[/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/anthropic/_exceptions.pyrrrrcBeZdZUded<ded<ded< dfd ZxZS) APIErrorstrmessage httpx.Requestrequest object | NonebodycNt||||_||_||_y)N)super__init__rrr)selfrrr __class__s rr!zAPIError.__init__(s% !   r)rrrrrrreturnNonerrr__annotations__r! __classcell__r#s@rrrs# L  rrc<eZdZUded<ded<dddfdZxZS) APIResponseValidationErrorhttpx.Responseresponseint status_codeNrcvt||xsd|j|||_|j|_y)Nz1Data returned by API invalid for expected schema.r)r r!rr-r/)r"r-rrr#s rr!z#APIResponseValidationError.__init__3s: W$WYaYiYiptu  #//r)r-r,rrr str | Noner$r%r&r)s@rr+r+/s_c00rr+cDeZdZUdZded<ded<ded<d fd ZxZS) APIStatusErrorz  #//"**..|<r)rrr-r,rrr$r%)rrr__doc__r'r!r(r)s@rr5r59s"F==rr5c&eZdZdddfdZxZS)APIConnectionErrorzConnection error.r0c*t|||dy)Nr2r r!)r"rrr#s rr!zAPIConnectionError.__init__Hs '5r)rrrrr$r%rrrr!r(r)s@rr<r<Gs)<66rr<c eZdZdfd ZxZS)APITimeoutErrorc(t|d|y)NzRequest timed out or interrupted. This could be due to a network timeout, dropped connection, or request cancellation. See https://docs.anthropic.com/en/api/errors#long-requests for more details.)rrr>)r"rr#s rr!zAPITimeoutError.__init__Ms Z  r)rrr$r%r?r)s@rrArALs   rrAceZdZUdZded<y)riz Literal[400]r/Nrrrr/r'rrrrrT #K#rrceZdZUdZded<y)riz Literal[401]r/NrDrrrrrXrErrceZdZUdZded<y)riz Literal[403]r/NrDrrrrr\rErrceZdZUdZded<y)riz Literal[404]r/NrDrrrrr`rErrceZdZUdZded<y)r iz Literal[409]r/NrDrrrr r drErr ceZdZUdZded<y)RequestTooLargeErroriz Literal[413]r/NrDrrrrKrKhrErrKceZdZUdZded<y)r iz Literal[422]r/NrDrrrr r lrErr ceZdZUdZded<y)r iz Literal[429]r/NrDrrrr r prErr ceZdZUdZded<y)ServiceUnavailableErroriz Literal[503]r/NrDrrrrOrOtrErrOceZdZUdZded<y)OverloadedErroriz Literal[529]r/NrDrrrrQrQxrErrQceZdZUdZded<y)DeadlineExceededErroriz Literal[504]r/NrDrrrrSrS|rErrSc eZdZy)r Nrrrrr r rrr ) __future__rtyping_extensionsrhttpx__all__ Exceptionrrr+r5r<rArrrrr rKr r rOrQrSr rrrrZs#%   Y ~,00 =X =66  ( $n$$.$$N$$N$$N$$>$$~$$^$$n$$n$$N$ . r