Skip to content

Concept exercise football-match-reports uses exceptions before the concept is introduced #2489

@sanderploegsma

Description

@sanderploegsma

I just noticed that the football-match-reports concept exercise expects the student to throw an IllegalArgumentException in one of its tasks, while the exceptions concept isn't unlocked at that time yet. Adding exceptions as a prerequisite isn't possible, because this would introduce a circular dependency between the football-match-reports and calculator-conundrum exercises.

I see two possible ways to resolve this:

  1. Remove the use of exceptions from the football-match-reports exercise
  2. Remove the use of switch statements from the calculator-conundrum exercise

Which option to choose IMO depends on the syllabus design: which concept should be introduced first to a user, exceptions or switch statements?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions