Skip to content
Discussion options

You must be logged in to vote

I'm not sure i understand the question here, if you want to capture and log unexpected errors, this already occurs in the exception handler.

If you are catching errors and raising different errors you can use raise Exception from e format to maintain the exception chain, this is standard python syntax, not related to fastapi-problem specifically.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@EdgyEdgemond
Comment options

@dineshbvadhia
Comment options

@dineshbvadhia
Comment options

@EdgyEdgemond
Comment options

Answer selected by dineshbvadhia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants