> pasted the code, it's clear it's not though! It's a Throwable!
See? It's twisted :)
> I think perhaps there actually would be a better name - but I'm feeling a
> little lazy to think about it, and it hardly seems that important. And I like
> a name that gives me a chuckle.
It is important in
On Jul 15, 2012, at 9:33 AM, Dawid Weiss wrote:
> While this may be confusing it help in IDEs a lot
> because you can click directly on t he stack trace frames instead of
> searching manually for a particular place in the code.
I did not find it confusing per say - the issue was clear by the mes
> That's just a little funny.
Yup. Check out the javadoc:
/**
* This is never thrown. The only purpose it serves it to carry
chained stack traces
* for informational purposes.
*/
@SuppressWarnings("serial")
final class NotAnException extends Throwable {
Suggestions on how it could be called be
domizedtesting.AssertingRandom.checkValid(AssertingRandom.java:139)
> at
> com.carrotsearch.randomizedtesting.AssertingRandom.nextBoolean(AssertingRandom.java:43)
> at org.apache.solr.cloud.ChaosMonkey$1.run(ChaosMonkey.java:353)
> Caused by: com.carrotsearch.randomizedtesting.NotAnEx
ed by: com.carrotsearch.randomizedtesting.NotAnException: Original
allocation stack for this Random (allocated by
Thread[TEST-TestScope-org.apache.solr.cloud.ChaosMonkeyNothingIsSafeTest.testDistribSearch-seed#[2EDBF53611C44F4C],5,RandomizedRunner-SuiteThreadGroup-org.apache.solr.cloud.ChaosMonkeyNothingIsSaf