beginner45 minby DevFox

Where to throw and where to catch: friendly errors for bad commands

Refuse a bad command where it is read, catch the refusal once where the program talks to the person, and write error messages that say what to type instead. Give TaskKit one friendly line for every command it does not know, and see why a catch that has to make up an answer is in the wrong place.

  • Fundamentals
  • TypeScript
Where to throw and where to catch: friendly errors for bad commands. Read this lesson at .