In some cases you need to modify the sort of an exception, and afterwards maintaining the first exception as internal exception is the greatest you can do. Nevertheless it ought to be throw new MyCustomException(myMessage, ex); of course. To really make it clear what is happening there, know this a https://mariofqapm.suomiblog.com/1-15-an-overview-47060962