By example, for a switch on an enum, the compiler inserts a "throw new ...Error()" automatically when the default case is not specified.