Preserving User Input After an Ordinary Error

A recoverable validation or write error should leave relevant user input available when the user can correct and submit it again.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a draft edit
  2. Avoid repeating a completed write

Trace a draft edit

A title entered with a missing category can remain in the form after a rejection. Returning uninitialized defaults would discard the usable title. A structured field error identifies which value needs correction.

Avoid repeating a completed write

If a timeout follows an apparently failed save, determine whether the draft was stored before starting another write. See ambiguous timeouts.[1]

References

  1. Python Software Foundation, Python Tutorial: Errors and Exceptions ↩