title: Error handling using the catch block in cypress
body: <p>I'm trying to handle an error in Cypress but the Cypress app is throwing error</p>
  
  <pre class="lang-js prettyprint-override"><code>cy.get('button[name="continue"]',{timeout: 30000})
    .catch((err) =&gt; {
      cy.console.log("error caught");
    })
  </code></pre>
  
  <p>The error I get:</p>
  
  <blockquote>
    <p>TypeError: cy.get(...).catch is not a function</p>
  </blockquote>