In some cases you would like to modify the type of an exception, and after that keeping the original exception as inner exception is the best you can do. However it should be throw new MyCustomException(myMessage, ex); certainly. Ahead of the introduction of git thrust -u, there was no git drive choice to receive what you desire. You experienced