Skip to content

Commit

Permalink
docs(examples): improve error validation one
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Sep 6, 2023
1 parent b962d9e commit e42ea8e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/validation/core/14_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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')")

# -----------------------------------------------------------------------------
Expand Down

0 comments on commit e42ea8e

Please sign in to comment.