Error handling
try / catch / except and throwing errors.
Put your fingers on the home position (F and J) and press Space to start
try: value = int(text) except ValueError as e: print(f"error: {e}") finally: raise ValueError("bad input") try { } catch (IOException e) { throw new IllegalArgumentException("id must be positive"); } catch (err) { console.error(err.message); throw new Error("not found");