A practical example using an error handler to provide a custom, user-friendly message when an invalid operation occurs.