title: How do I capture all error & display an error message
body: <p>In my python code, I would like to catch all the errors &amp; display an error message. For example, I would like to do this thing</p>
  
  <pre><code>try:
  'my code block
  catch:
  print("Error:x error occurred" )
  </code></pre>
  
  <p>Can you suggest me how to do this?</p>