I feel like I'm missing something very simple here. I have Eclipse set up to break on all exceptions. So, let's say that it breaks on an AssertationFailedException. The Debug window will show that thread suspended and has the following data:
Thread [Thread-1] (Suspended (exception AssertionFailedException))
ContactManager.addContact(String) line: 93
ContactManager$ContactDataCallback.dispatch(String, Element, ClientConnector) line: 118
PacketHandler.handle(FractusPacket) line: 173
ServerConnection.syncProcess(FractusMessage) line: 122
ServerConnection.run() line: 248
Thread.run() line: 636
However, the text that I'm looking for, such as:
"Getter called outside realm of observable org.eclipse.core.databinding.observable.set.WritableSet@4b7361e2", is not available until I step through the exception (thus propagating it all the way up the stack) where it outputs the type of the exception, the text (which is the part that I want) and the stack trace.
How can I examine the "AssertationFailedException" (or any other exception) in order to get the message with which the exception was constructed? Of course I'm in the Debug perspective.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…