Skip to content
Discussion options

You must be logged in to vote

The problem with app.on_exception is that the exception handler has no clue who raised the exception. Usually NiceGUI looks into its "slot stack" to see the most recent context. This includes the client (i.e. the browser tab), the UI element, and the slot. The slot is a concept from the Vue framework: Each element has a default slot, which is where child elements are placed. But some elements have multiple slots, e.g. QTable has one for the header, one for the pagination, one for body cells and so on. Therefore NiceGUI elements also have one or more slots.

Apart from the technical details, it boils down to this: An app exception can happen anywhere in the code. It could also occur in a RE…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by PawelRoman
Comment options

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

@falkoschindler
Comment options

@natankeddem
Comment options

@natankeddem
Comment options

Comment options

You must be logged in to vote
1 reply
@petergaultney
Comment options

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