function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Curtis ParisCurtis Paris 

Simulating Error Conditions

Is there any way to simulate error conditions such as:

  • Session invalidating itself before the normal 2 hours
  • Throttling
  • Random Exceptions (unexpected/uncaught Sforce system errors)

I have yet to run into any of these during development, but, once real users get ahold of the product I would like to have this tested.  Our QA department has also been asking about this.

Message Edited by Curtis Paris on 05-24-2004 11:19 AM


Hi Curtis,

Well, there is no way to simulate errors from the service side.  But you can, for instance, at points in your app do things like change the session id before a query or other call to a session id that is expired.