L3 · Required

Interfaces and error handling

Use interfaces and error handling to make decisions inspectable.

What you should be able to do

Independently: Define inputs, outputs and failures for one function or API.

Suggested prerequisites

A short guide

Use interfaces and error handling to make decisions inspectable. Define inputs, outputs and failures for one function or API. Read the indicated source section, identify its key concepts and conditions, and work through the example. Record inputs, sources, units and assumptions. Keep your method separate from the result, mark unanswered questions, and review the output against the checklist.

An example

Invalid input should be distinguishable from system failure.

Your task

Define inputs, outputs and failures for one function or API.

Start with this source

Read the indicated section relevant to interfaces and error handling and complete the applied task.

This source is awaiting renewed review. Try the task above and adjacent skills; reviewed sources will appear here.

Your learning checklist

Required items: 0 / 10 completed or already known

Device storage

Next: Read a role through its responsibilities

Checklist statuses are self-reported; exercise scores are recorded separately. You can reset any item.

Self-check

Try a practice set

Calculations and choices receive immediate checks. Review open responses yourself against the rubric. All examples are educational.

1. What is the sum obtained by iterating over [2, 3, 5]?
2. Which test belongs with a fix for dividing by list length?
3. After the interfaces and error handling task, state one assumption, one supporting fact and one condition that would change your conclusion.