Sub topic 3
Error paths, edge cases, and dead ends
This chapter assumes you can read the flow notation from earlier chapters: rounded terminators for start and end, rectangles for steps, and diamonds for decisions. It also assumes you know the happy path, the route a user takes when everything works.
Error paths and edge cases
An error path is a branch that starts at a decision and leads to a recovery step. An edge case is an unusual but valid input, such as an email address with a plus sign. A dead end is a step with no way forward, which traps the user.
For each decision, draw the "no" branch and ask where it leads. Every error branch should return the user to a step where they can fix the problem.
Choosing scope and level of detail
Set the scope before you draw. A flow for one task, such as resetting a password, stays readable. A flow for a whole app does not. Match the detail to the audience. Developers need every error state. Stakeholders need the happy path and the major branches.
| Audience | Level of detail | Typical scope |
|---|---|---|
| Developers | Every error state and validation rule | One feature |
| Designers | Screens and decision points | One task |
| Stakeholders | Happy path and major branches | One goal |
Building a flow step by step
- Write the user goal and list the entry points.
- Map the happy path from start to end.
- Add decision points, then error paths and edge cases.
- Check each step for a way forward.
Run this check to find steps that lead nowhere and are not declared end points:
const flow = {
open_app: ["has_account"],
has_account: ["login_form", "signup_form"],
login_form: ["credentials_valid"],
signup_form: ["home"],
credentials_valid: ["home", "login_error"],
login_error: ["login_form"],
home: [],
};
const endpoints = new Set(["home"]);
const deadEnds = Object.entries(flow)
.filter(([step, next]) => next.length === 0 && !endpoints.has(step))
.map(([step]) => step);
console.log(deadEnds); // []Validating a flow
Walk through the flow with a colleague. Ask them to say what they expect at each step. Run usability tests with real users on the riskiest branches. After launch, funnel analytics show where users leave. A sharp drop at one step usually points to a flow problem at that step.
From flows to wireflows
A wireflow places a simple screen sketch at each step of a verified flow. Draw screens only for steps that show a user-facing state. Keep the flow as the source of truth, and update the screens when the flow changes.
Documenting and sharing
Store each flow where the team can find it. Add a date and a version number. List the open questions. Assign one owner per flow so changes stay consistent.
Exercise
In the sign-in flow, what should happen after the user enters the wrong password?
Show answer
The flow should show an error message and return the user to the credentials step so they can retry.