Mar 20, 2021
This is not by definition a choice, in most languages you can put the 'raw' exception inside your custom exception. And it can be very useful to put an additional message with the exception that contains either more details or some explanation why the exception happens.