3 ms·
Checked exceptions make a lot of sense if they are business logic related exceptions for example - CustomerNotFoundException, WithdrawUnauthorizedException. The
by monster_group 8y ago
Checked exceptions make a lot of sense if they are business logic related exceptions for example - CustomerNotFoundException, WithdrawUnauthorizedException. The client knows that server will throw these exceptions and can take different actions accordingly (for example displaying an appropriate message rather than a generic error message). If it is just one general exception then you are clubbing several different situations in just one bucket.