#34;&#34;FastAPI exceptional handler for errors raised by Supertokens SDK when not using middleware

    Usage: `app.add_exception_handler(SuperTokensError, st_exception_handler)`
    &#34;&#34;&#34;
    base_req = FastApiRequest(request)
    base_res = FastApiResponse(JSONResponse(content={}))
    user_context = default_user_context(base_req)
    result = await Supertokens.get_instance().handle_supertokens_error(
        base_req, exc, base_res, user_context
    )
    if isinstance(result, FastApiResponse)