Occasionally you want to alter the type of an exception, and then maintaining the first exception as interior exception is the best you can do. However it ought to be toss new MyCustomException(myMessage, ex); obviously. Your second example will reset the exception's stack trace. The primary most correctly preserves the https://windows10education5pcreta13991.blogdiloz.com/30655195/windows-server-2008-r2-datacenter-1pc-an-overview