Find out which instance threw an exception in a try-catch block
<p>Is there any way in Java to find out "who"/"what" threw the excpetion?</p>

<p>consider the following code which validates a couple of Textfields (which have certain constraint on what input is valid or not). I want to mark the corresponding textfield red.</p>

<pre><code>public void validateInput() {
    try {
        textfieldName.validate();
        textfieldAge.validate();
    } catch (InvalidInputExcpetion e) {
        // Pseudocode
        // e.getThrower() would get me the reference to the Object which threw the exception
        (TextField e.getThrower()).markRed();
    }
}
</code></pre>

<p>The only solution I found is to extend my custom excpetion to hold a reference to the throwing textfield, isn't there an easier way?</p>