Skip to content

Clarify what is meant by "reasonable error handling" for the Bank project #936

@viggobergdahl

Description

@viggobergdahl

One of the requirements for the Bank project is "reasonable error handling". This requirement is seemingly vague as many students haven't implemented reasonable error handling the first time they try to present their project. In Swedish, the full text for the requirement is:

"Rimlig felhantering ska finnas. Det är alltså önskvärt att programmet inte kraschar då användaren matar in felaktig input, utan istället säger till användaren att input är ogiltig. Du kan dock anta att historikfilen alltid är i rätt format."

In order to hopefully put more students on the correct path before trying to present their projects, this requirement could be clarified. For example, it could be written that input requiring Integers or Floats should not crash when presented with Strings. Also, when depositing or withdrawing money, the amount should not be able to be negative. Further, there have been cases were the code does handle negative amounts for the "live" bank but still adds it to the history, making the program crash or not load in correctly when restarted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions