Sometimes you need to alter the type of an exception, and after that holding the original exception as inner exception is the best you are able to do. However it ought to be toss new MyCustomException(myMessage, ex); certainly. Alternatively, You should use git stash or maybe more totally git stash preserve "title description" to save lots of yo