Wim Jongeneel
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.

--

--

Wim Jongeneel
Wim Jongeneel

Written by Wim Jongeneel

Software Engineer at Mendix (Rotterdam, The Netherlands) • Student MSc Software Engineering • Functional programming enthusiast

Responses (1)