<?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 do I make apiError as a string in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-make-apiError-as-a-string/m-p/225646#M12261</link>
    <description>&lt;P&gt;Oh~I see~!&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2017 05:00:41 GMT</pubDate>
    <dc:creator>chunchk</dc:creator>
    <dc:date>2017-06-14T05:00:41Z</dc:date>
    <item>
      <title>How do I make apiError as a string</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-make-apiError-as-a-string/m-p/224964#M12172</link>
      <description>&lt;P&gt;Hello, I am new in here&lt;/P&gt;&lt;P&gt;I try to develop a script that can auto email&amp;nbsp;a Dropbox link to someone&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;.sharing_create_shared_link_with_settings to determine does the file had been shared or not&lt;/P&gt;&lt;P&gt;However, now I encounter a new python exception&amp;nbsp;which is "not_found",&lt;/P&gt;&lt;P&gt;my&amp;nbsp;situation is, now I have 2 python exceptions,&amp;nbsp;"not_found" and "shared_link_already_exists"&lt;/P&gt;&lt;P&gt;my question is, how do I let python know that the exception is "not_found" or&amp;nbsp;&lt;SPAN&gt;"shared_link_already_exists" , so I can code some actions depends on the different exception&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-make-apiError-as-a-string/m-p/224964#M12172</guid>
      <dc:creator>chunchk</dc:creator>
      <dc:date>2019-05-29T09:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make apiError as a string</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-make-apiError-as-a-string/m-p/225048#M12187</link>
      <description>&lt;P&gt;Here's an example of how you can tell apart different errors:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import dropbox
from dropbox.exceptions import ApiError

dbx = dropbox.Dropbox("&amp;lt;ACCESS_TOKEN&amp;gt;")

try:
    print(dbx.sharing_create_shared_link_with_settings("/test222.txt"))
except ApiError as err:
    if err.error.is_shared_link_already_exists():
        print("Link already exists.")
    if err.error.is_path() and err.error.get_path().is_not_found():
        print("File not found.")
    elif err.error.is_settings_error():
        print(err.error.get_settings_error())
    else:
        print(err)
&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2017 18:00:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-make-apiError-as-a-string/m-p/225048#M12187</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-09T18:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make apiError as a string</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-make-apiError-as-a-string/m-p/225646#M12261</link>
      <description>&lt;P&gt;Oh~I see~!&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 05:00:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-do-I-make-apiError-as-a-string/m-p/225646#M12261</guid>
      <dc:creator>chunchk</dc:creator>
      <dc:date>2017-06-14T05:00:41Z</dc:date>
    </item>
  </channel>
</rss>

