<i>&quot;I wonder whether there is an imperative language that enforces explicit handling of errors...&quot;</i><p>Java does that. If a method can throw an exception, you need to either handle the exception in a &#x27;catch&#x27; block or throw it up the call stack for another method to handle. If you do neither, your code won&#x27;t compile.