cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Musicians, convert your MuseScore files to PDF to play music on the go! Learn more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Trigger or simulate errors in Python SDK

Trigger or simulate errors in Python SDK

Laubwerk
Explorer | Level 3

Hi,

 

Apologies if this is a duplicate question, but I haven't been able to find anything that covers this.

 

I'm developing a Python API with the Dropbox SDK to work with our files on Dropbox.

 

I'd like our API to be able to handle Dropbox errors gracefully, using errorhandlers and the Dropbox exception classes, but for some of them, e.g., RateLimitError or InternalServerError, I'm not sure how I might go about triggering or simulating them. Of course, I can create a new instance of the exception classes in a shell and have a look, but this won't tell me much about what will usually be inside these objects, or how I'll be able to access their contents.

 

Do you have any suggestions as to how I can create, try out, and work with meaningful examples of these exceptions?

 

Thanks,

J

2 Replies 2

Greg-DB
Dropbox Staff
There isn't a way to directly trigger or simulate these unfortunately, but I'll pass this along as a feature request.

Laubwerk
Explorer | Level 3

Thanks, that would be great!

Need more support?