Is it correct to respond to logically incorrect user inputs via exceptions ?
Here is an example:
We have many companies and each company has many employees. Each company has an id and each employee has an id. If user wants to delete employee from a specific company but the comapny he specified does not exist, is it okay to throw an exception like CompanyNotExtistsException ?
If I returned true or false I cant respond to user in GUI with the message why employee was not deleted - if he does not exist or if the company does not exist.