<?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: SwiftyDropbox error handing for thumbnails in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-error-handing-for-thumbnails/m-p/200363#M9377</link>
    <description>&lt;P&gt;Thanks for sharing! Yes, this looks good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, there's a similar example here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/documentation/dropbox-api/408/downloading-a-file/1351/downloading-a-file-with-every-error-case-handled-using-the-swiftydropbox-library#t=201701031839136724815" target="_blank"&gt;https://stackoverflow.com/documentation/dropbox-api/408/downloading-a-file/1351/downloading-a-file-with-every-error-case-handled-using-the-swiftydropbox-library#t=201701031839136724815&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(It was written for an earlier version of the SDK though, so the syntax may not be exactly right for the latest one.)&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2017 18:41:37 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-01-03T18:41:37Z</dc:date>
    <item>
      <title>SwiftyDropbox error handing for thumbnails</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-error-handing-for-thumbnails/m-p/200309#M9373</link>
      <description>&lt;P&gt;Finishing off my dropbox based app and trying to put in some comprehensive error code. Downloading thumbnails within it and crafted this method based on the documentation. Seems to work, but wanted to double check I am on the right track.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;func doThumbError(error: Any) {
    switch error as! CallError&amp;lt;SwiftyDropbox.Files.ThumbnailError&amp;gt; {
    case .routeError(let boxed, let requestId):
        switch boxed.unboxed {
        case .conversionError: break
        case .unsupportedExtension:break
        case .unsupportedImage:break
        case .path(let lookupError):
            switch lookupError {
            case .notFound:
                print("There is nothing at the given path.")
                break
            case .notFile:
                print("We were expecting a file, but the given path refers to something that isn't a file.")
                break
            case .notFolder:
                print("We were expecting a folder, but the given path refers to something that isn't a folder.")
                break
            case .restrictedContent:
                print("The file cannot be transferred because the content is restricted...")
                break
            case .malformedPath(let malformedPath):
                print("Malformed path: \(malformedPath)")
                break
            default:
                print("Unknown \(error)")
                break
            }
        }
    case .internalServerError(let code, let message, let requestId):
        print("InternalServerError[\(requestId)]: \(code): \(message)")
        break
    case .badInputError(let message, let requestId):
        print("BadInputError[\(requestId)]: \(message)")
        break
    case .authError(let authError, let requestId):
        print("AuthError[\(requestId)]: \(authError)")
        break
    case .rateLimitError(let rateLimitError, let requestId):
        print("RateLimitError[\(requestId)]: \(rateLimitError)")
        break
    case .httpError(let code, let message, let requestId):
        print("HTTPError[\(requestId)]: \(code): \(message)")
        break
    case .clientError(let error):
        print("ClientError: \(error)")
        break
    }
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:27:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-error-handing-for-thumbnails/m-p/200309#M9373</guid>
      <dc:creator>Mark L.45</dc:creator>
      <dc:date>2019-05-29T09:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropbox error handing for thumbnails</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-error-handing-for-thumbnails/m-p/200363#M9377</link>
      <description>&lt;P&gt;Thanks for sharing! Yes, this looks good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For reference, there's a similar example here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/documentation/dropbox-api/408/downloading-a-file/1351/downloading-a-file-with-every-error-case-handled-using-the-swiftydropbox-library#t=201701031839136724815" target="_blank"&gt;https://stackoverflow.com/documentation/dropbox-api/408/downloading-a-file/1351/downloading-a-file-with-every-error-case-handled-using-the-swiftydropbox-library#t=201701031839136724815&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(It was written for an earlier version of the SDK though, so the syntax may not be exactly right for the latest one.)&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 18:41:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-error-handing-for-thumbnails/m-p/200363#M9377</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-01-03T18:41:37Z</dc:date>
    </item>
  </channel>
</rss>

