I\'m working with some classes which, when throwing, have a relatively deep InnerException tree. I\'d like to log and act upon the innermost exception which is the one having th
I think you can get the innermost exception using the following code:
public static Exception getInnermostException(Exception e) { return e.GetBaseException(); }