<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to handle java.io.Exception in python notebook in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29241#M20987</link>
    <description>&lt;P&gt;Hi @Debayan Mukherjee​&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is not a file one. In the workbook that mounted the container, the container name was mis-typed. Despite the mount command being wrapped in a try..catch.. block, it was not caught and this error bubbled up and threw an exception that stopped the workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question relates to how to handle future events like this where standard pythonic exception handling doesn't work&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 01:36:56 GMT</pubDate>
    <dc:creator>StuartParker188</dc:creator>
    <dc:date>2022-10-14T01:36:56Z</dc:date>
    <item>
      <title>How to handle java.io.Exception in python notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29238#M20984</link>
      <description>&lt;P&gt;I'm attempting to mount a volume using dbutils.fs.mount in a python workbook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the exception handling for this statement, I have found an exception that doesn't get caught using the standard try/except handling&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example, if passing through a container name that does not exist I get the following exception - but it is not caught&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExecutionError: An error occurred while calling o390.mount.&lt;/P&gt;&lt;P&gt;: java.io.FileNotFoundException: /: No such file or directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an approach to catch a java.io.Exception within a python notebook?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 06:46:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29238#M20984</guid>
      <dc:creator>StuartParker188</dc:creator>
      <dc:date>2022-10-05T06:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle java.io.Exception in python notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29240#M20986</link>
      <description>&lt;P&gt;If except Exception as error: is not working, you can check first if container name exists as resource&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 15:29:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29240#M20986</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-10-13T15:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle java.io.Exception in python notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29241#M20987</link>
      <description>&lt;P&gt;Hi @Debayan Mukherjee​&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is not a file one. In the workbook that mounted the container, the container name was mis-typed. Despite the mount command being wrapped in a try..catch.. block, it was not caught and this error bubbled up and threw an exception that stopped the workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question relates to how to handle future events like this where standard pythonic exception handling doesn't work&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 01:36:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29241#M20987</guid>
      <dc:creator>StuartParker188</dc:creator>
      <dc:date>2022-10-14T01:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle java.io.Exception in python notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29242#M20988</link>
      <description>&lt;P&gt;Thanks - you are correct -  however I am attempting to determine if it is possible to catch the Java error that is bubbling up within the pyspark environment&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 01:38:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29242#M20988</guid>
      <dc:creator>StuartParker188</dc:creator>
      <dc:date>2022-10-14T01:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle java.io.Exception in python notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29243#M20989</link>
      <description>&lt;P&gt;Hi @Stuart Parker​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or &lt;B&gt;mark an answer as best&lt;/B&gt;? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 05:51:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29243#M20989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-13T05:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle java.io.Exception in python notebook</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29239#M20985</link>
      <description>&lt;P&gt;Hi @Stuart Parker​&amp;nbsp;, Could you please check in the Data/DBFS page if the file is there (or via&amp;nbsp;&lt;A href="https://dbutils.fs.ls/" alt="https://dbutils.fs.ls/" target="_blank"&gt;dbutils.fs.ls&lt;/A&gt;, &lt;A href="https://docs.databricks.com/dev-tools/databricks-utils.html" alt="https://docs.databricks.com/dev-tools/databricks-utils.html" target="_blank"&gt;https://docs.databricks.com/dev-tools/databricks-utils.html&lt;/A&gt;)?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 08:22:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-handle-java-io-exception-in-python-notebook/m-p/29239#M20985</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2022-10-06T08:22:51Z</dc:date>
    </item>
  </channel>
</rss>

