From e42ea8e33ee954f0e24642a116cdde89a28c8566 Mon Sep 17 00:00:00 2001 From: Sebastien Jourdain Date: Wed, 6 Sep 2023 09:40:09 -0600 Subject: [PATCH] docs(examples): improve error validation one --- examples/validation/core/14_errors.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/validation/core/14_errors.py b/examples/validation/core/14_errors.py index 9a1ad28a..5db29696 100644 --- a/examples/validation/core/14_errors.py +++ b/examples/validation/core/14_errors.py @@ -16,6 +16,10 @@ def kill_server(): sys.exit(0) +def throw_exception(): + raise Exception("That is an expected error") + + async def fake_busy(): print("start busy...") asyncio.sleep(5) @@ -42,6 +46,7 @@ async def fake_busy(): toolbar.dense = True vuetify.VSpacer() vuetify.VBtn("Kill server", click=kill_server) + vuetify.VBtn("Server exception", click=throw_exception) vuetify.VBtn("JS Error", click="console.error('test')") # -----------------------------------------------------------------------------