3 ms·
In large, layered software projects, the best solution can be "catch and wrap". In that case, the wrapping exception provides information about what went wrong,
by Hermel 10y ago
In large, layered software projects, the best solution can be "catch and wrap". In that case, the wrapping exception provides information about what went wrong, and the wrapped exception says why. For example, a CouldNotLoadImageException might wrap a JPegDecodingException or a CouldNotConnectException, depending on what went wrong underneath.