a c@sUddlmZmZmZmZmZddlmZmZm Z ddl m Z ddl m Zddl mZGdddeZ e dZeeed <e d Zeeed <Gd d d eZGdddeZGdddeZdS))AnyDictOptionalSequenceType) BaseModelValidationError create_model) ErrorList) HTTPException)WebSocketExceptioncs6eZdZdeeeeeefddfdd ZZ S)r N) status_codedetailheadersreturncstj|||ddS)N)r rr)super__init__)selfr rr __class___/workspaces/shunt/resources/test-fastapi/venv/lib/python3.9/site-packages/fastapi/exceptions.pyr szHTTPException.__init__)NN) __name__ __module__ __qualname__intrrrstrr __classcell__rrrrr sr RequestRequestErrorModelZ WebSocketWebSocketErrorModelc@seZdZdZdS) FastAPIErrorz, A generic, FastAPI-specific error. N)rrr__doc__rrrrr!sr!cs0eZdZddeeeddfddZZS)RequestValidationErrorN)body)errorsr$rcs||_t|tdSN)r$rrr)rr%r$rrrrszRequestValidationError.__init__)rrrrr rrrrrrrr#sr#cs(eZdZeeddfdd ZZS)WebSocketRequestValidationErrorN)r%rcst|tdSr&)rrr )rr%rrrr$sz(WebSocketRequestValidationError.__init__)rrrrr rrrrrrr'#sr'N)typingrrrrrZpydanticrrr Zpydantic.error_wrappersr Zstarlette.exceptionsr ZStarletteHTTPExceptionr r__annotations__r RuntimeErrorr!r#r'rrrrs