Skip to content
ballmüllersolutions logo Send an email Call us

Lesson 40 of 49about 180 minutes

Module 1.6 · Errors

The result pattern: expected errors as a value

What you learn in this lesson

  • tell expected errors from unexpected ones
  • build and use a type of your own, Result<T>, with a value and error codes
  • check inputs without throwing an exception, and report all errors at once
  • keep the error codes in the model separate from the users' sentences in the console
  • check results with error codes in tests

This lesson belongs to course K1

You will see this lesson's text and video once you have bought the course. The goals above show what you learn here.

€149.00

incl. VAT, one-time payment

Access to all of the course's lessons with their exercises, solutions and videos on this site, for 24 months from the purchase. A self-study course: no tutoring, no exams or grading by us, and no certificate.

Sign in and buy

To course K1

To the overview: K1 Getting started: programming with C#