Errors in a design: validation, exceptions and result types
Every method meets cases where it can't do its job: input that makes no sense, a rule that says no, or a bug in the code. Interviewers want to see that you tell these three apart. Each one should reach the code that can do something about it, with its reason still attached.
A shop's returns desk
Picture taking a jacket back to a shop's returns desk. If two boxes on your form are wrong, a good assistant marks both and hands it back, so you fix them in one go. If you bought the jacket more than 30 days ago, she says no and tells you why, and you can choose store credit instead. If her till crashes, she doesn't tell you the jacket is too old. She calls the manager, because the problem is the shop's, not yours. Behind her, the shop's rules decide what can be refunded, and those rules never read your handwriting.
In code, the desk is the edge of the system, here a FrontDesk that takes table bookings for a restaurant as raw text. The form with every wrong box marked is validation at the boundary. It returns a result type, an object that holds either a valid request or the list of problems. The 30-day rule saying no is a named exception, FullyBookedException, which the Restaurant throws when every table at that hour is taken, and store credit is the customer trying another hour. The crashed till is a bug, which nobody at the desk should hide, and the manager is the top of the program, where a bug is logged. The shop's rules are the Restaurant itself, which only ever sees a checked TableRequest and never raw text.