Best way to check whether a certain exception type was the cause (of a cause, etc ...) in a nested exception? Best way to check whether a certain exception type was the cause (of a cause, etc ...) in a nested exception? spring spring