part of fix bug #10160 - give innerException for some rethrown exception.