Android "suspended (Exception X)" stack trace
<p>Someone testing an Android app submitted a stack trace to us that looks like this:</p>

<pre><code>Thread [&lt;21&gt; Thread-31] (Suspended (exception SQLiteException)) 
FooClass.bar(Foo2Class) line: 198
</code></pre>

<p>The line of code it points to is not related to SQLite (it's not an Android class, it's my code).  If you want to know, the line of code it points to looks like this:  </p>

<pre><code>if (s_arrayList.contains(foo2))
</code></pre>

<p>so the only exception I could imagine happening here is a NullPointer... definitely not a SQLite exception.</p>

<p>My main question is:  What does the "Suspended (exception X)" really mean?  If the exception happened on a different thread, why is Android reporting this stack trace? </p>

<p><strong>Update:</strong></p>

<p>I think this issue has to do with Eclipse, which suspended the thread when it detected an exception.  This still leaves the question unanswered for me, which is why Eclipse suspded the thread at precisely this place.  I found a related question, which discusses this quirk of Eclipse.  You can read more about it here:</p>

<p><a href="http://stackoverflow.com/questions/4892547/eclipse-android-debugger-where-in-my-code-did-i-cause-the-exception">Eclipse Android Debugger - Where in my code did I cause the exception?</a>  </p>
