# Solidity Level 5: Events & Errors

> Level 5: Events & Errors of the LoWisa Solidity course: Events, Custom Errors, Reverts and Contract Failure. 3 lessons and 9 ideas, each explained in one line.

Events & Errors is level 5 of 17 of the [LoWisa Solidity course](/courses/solidity/). It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

## Events

- **Events.** An **event** writes a log entry: the cheap, indexed breadcrumb off-chain systems watch.
- **indexed parameters.** **indexed** parameters become searchable topics: filter transfers by address without scanning.
- **Events as the API.** Indexers and UIs live on **events**: every state change worth knowing emits one.

## Custom Errors

- **Custom errors.** A custom **error**: error NotOwner();: reverts cheaper than strings and names the failure precisely.
- **revert with data.** Errors carry **arguments**: error InsufficientBalance(available, required): diagnostics as data.
- **require and revert.** **require** guards with a condition; revert raises directly: both undo everything.

## Reverts and Contract Failure

- **All-or-nothing.** A reverted call leaves **no** trace but the gas spent: atomicity as the safety net.
- **try/catch external calls.** Solidity **try/catch** handles a failing external call: one contract’s revert need not become yours.
- **Failing loudly.** Contracts fail **loudly** and early: silent fallbacks around money are how funds vanish.

## Before and after this level

- **Before:** [Level 4: Functions & Access](/courses/solidity/level-4-functions-and-access/): Visibility, Modifiers, Access-Control Patterns.
- **Next:** [Level 6: Contract Interaction](/courses/solidity/level-6-contract-interaction/): ABI, External Calls, Ether and Value Transfers.

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See [Checkpoints and flashcards](/help/checkpoints-and-flashcards/).

## Frequently asked questions

### What does Solidity Level 5: Events & Errors cover?

Events, Custom Errors, Reverts and Contract Failure: 3 lessons and 9 ideas.

### What should I know before this level?

The level before it, Level 4: Functions & Access, which covers Visibility, Modifiers, Access-Control Patterns.

## Learn Solidity on your phone

The first level is free. LoWisa is on Google Play and the App Store.

---

Source: https://lowisa.dev/courses/solidity/level-5-events-and-errors/ · Updated 2026-11-30
