Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8798519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:06:58+00:00 2026-06-14T00:06:58+00:00

A general exception catcher logs the following exception: Traceback (most recent call last): File

  • 0

A general exception catcher logs the following exception:

Traceback (most recent call last):
  File "4sq.py", line 37, in <module>
    checkin = client.checkins()
  File "/usr/local/lib/python2.7/dist-packages/foursquare-20120716-py2.7.egg/foursquare/__init__.py", line 416, in __call__
    return self.GET('{CHECKIN_ID}'.format(CHECKIN_ID=CHECKIN_ID), params, multi=multi)
  File "/usr/local/lib/python2.7/dist-packages/foursquare-20120716-py2.7.egg/foursquare/__init__.py", line 217, in GET
    return self.requester.GET(self._expanded_path(path), *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/foursquare-20120716-py2.7.egg/foursquare/__init__.py", line 163, in GET
    return self._request(url)
  File "/usr/local/lib/python2.7/dist-packages/foursquare-20120716-py2.7.egg/foursquare/__init__.py", line 200, in _request
    return _request_with_retry(url, data)['response']
  File "/usr/local/lib/python2.7/dist-packages/foursquare-20120716-py2.7.egg/foursquare/__init__.py", line 696, in _request_with_retry
    return _process_request_with_httplib2(url, data)
  File "/usr/local/lib/python2.7/dist-packages/foursquare-20120716-py2.7.egg/foursquare/__init__.py", line 719, in _process_request_with_httplib2
    return _check_response(data)
  File "/usr/local/lib/python2.7/dist-packages/foursquare-20120716-py2.7.egg/foursquare/__init__.py", line 742, in _check_response
    raise exc(meta.get('errorDetail'))
RateLimitExceeded: Quota exceeded

I would like to know the specific exception name so I could add a dedicated catch to it.
How can it be found?

Is there a ‘type’ function on the caught exception or should it be found in the throwing lib’s source (available here)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:06:59+00:00Added an answer on June 14, 2026 at 12:06 am

    The exception being raised in the paste is foursquare.RateLimitExceeded (as it says in the final line). You should be able to catch it as normal, or catch its base class foursquare.FoursquareException if you want to handle all errors from the module.

    The code that raises the exception is just looking up which exception class to raise from a dictionary. That shouldn’t have any effect on how you catch those errors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am serializing a XML File.During the serialization ,I am receiving general exception.It is
When Exception is displayed (or more general - when it is converted to String)
Our code catches the general exception everywhere. Usually it writes the error to a
Hiii. Is there any way to uniquely identify a particular exception from the general
I find myself handling exceptions without specifying an exception type when I call code
I am looking to throw a general Exception in Java. The situation is basically
I am trying to build a general exception handler for a swing application as
i've faced an unhandled exception of General Protection Exception. while the program runs but
The purpose is to handle all persistence exception and wrapped to simple general exception,
Here's the thing. My .NET application crashes with a pretty ugly general exception fault

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.